diff --git a/CMakeLists.txt b/CMakeLists.txt index 86661d9..c3e59ec 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,5 +16,7 @@ ExternalProject_Add(simple set(SIMPLE_LIBS ${PROJECT_BINARY_DIR}/lib/libsimple.a) include_directories(${PROJECT_BINARY_DIR}/include) +SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin) + add_subdirectory(src) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 4b012e8..3fc8826 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -2,3 +2,5 @@ add_executable(simple_demo simple_demo.cpp) target_link_libraries(simple_demo ${SIMPLE_LIBS}) + +install(TARGETS simple_demo RUNTIME DESTINATION bin)