2019-08-03 20:10:20 +02:00
|
|
|
include(GNUInstallDirs)
|
2019-07-26 21:00:05 +02:00
|
|
|
|
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})
|
2019-08-03 20:10:20 +02:00
|
|
|
|
2019-07-30 07:02:09 +02:00
|
|
|
set_target_properties(${PROJECT_NAME}-cli
|
|
|
|
PROPERTIES OUTPUT_NAME ${PROJECT_NAME})
|
2019-07-26 20:57:24 +02:00
|
|
|
|
2019-08-03 20:10:20 +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})
|