CMakeLists.txt (491B)
1 add_executable(demo demo.cpp) 2 target_link_libraries(demo alec) 3 4 set_target_properties(demo PROPERTIES 5 VERSION ${PROJECT_VERSION} 6 SOVERSION ${PROJECT_VERSION_MAJOR} 7 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" 8 ) 9 10 add_executable(demo_runtime demo_runtime.cpp) 11 target_link_libraries(demo_runtime alec) 12 13 set_target_properties(demo_runtime PROPERTIES 14 VERSION ${PROJECT_VERSION} 15 SOVERSION ${PROJECT_VERSION_MAJOR} 16 RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/bin" 17 )