Add install rules to CMake build

install the executables to the bin folder
This commit is contained in:
Arthur Zamarin
2015-10-26 09:40:35 +02:00
parent 888882c743
commit 2d0b446486

View File

@@ -51,9 +51,15 @@ add_library(pycxx STATIC ${COMMON_SOURCES})
add_executable(pycdas pycdas.cpp)
target_link_libraries(pycdas pycxx)
install(TARGETS pycdas
RUNTIME DESTINATION bin)
add_executable(pycdc pycdc.cpp ${pycdc_AST_SOURCES})
target_link_libraries(pycdc pycxx)
install(TARGETS pycdc
RUNTIME DESTINATION bin)
# For tests
add_custom_target(test ${CMAKE_CURRENT_SOURCE_DIR}/pycdc_test.sh
${CMAKE_CURRENT_SOURCE_DIR}/tests)