remwharead/src/cli/CMakeLists.txt

18 lines
450 B
CMake
Raw Normal View History

include(GNUInstallDirs)
2019-07-26 07:08:13 +02:00
file(GLOB sources_cli *.cpp)
2019-07-26 20:57:24 +02:00
2019-07-26 07:08:13 +02:00
add_executable(${PROJECT_NAME}-cli ${sources_cli})
set_target_properties(${PROJECT_NAME}-cli
PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
2019-07-26 20:57:24 +02:00
target_include_directories(${PROJECT_NAME}-cli
PRIVATE "${PROJECT_BINARY_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}")
target_link_libraries(${PROJECT_NAME}-cli
PRIVATE ${PROJECT_NAME})
install(TARGETS ${PROJECT_NAME}-cli
DESTINATION ${CMAKE_INSTALL_BINDIR})