From 2d0b4464868cbfa51405e1771e17a5b9d261f5e9 Mon Sep 17 00:00:00 2001 From: Arthur Zamarin Date: Mon, 26 Oct 2015 09:40:35 +0200 Subject: [PATCH] Add install rules to CMake build install the executables to the bin folder --- CMakeLists.txt | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CMakeLists.txt b/CMakeLists.txt index e645d8e..c4f7b12 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)