2015-12-13 16:33:58 +00:00
|
|
|
project(${bare_name}-<command_name_here> CXX)
|
2015-12-10 22:13:06 +00:00
|
|
|
|
|
|
|
add_executable(${PROJECT_NAME}
|
|
|
|
main.cpp
|
|
|
|
commandline.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(${PROJECT_NAME}
|
|
|
|
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(${PROJECT_NAME}
|
|
|
|
PRIVATE ${bare_name}-if
|
|
|
|
PRIVATE ${bare_name}-common
|
|
|
|
)
|
|
|
|
|
|
|
|
string(REPLACE "${bare_name}-" "" ACTION_NAME "${PROJECT_NAME}")
|
|
|
|
target_compile_definitions(${PROJECT_NAME}
|
|
|
|
PRIVATE ACTION_NAME="${ACTION_NAME}"
|
|
|
|
)
|
2016-02-11 08:07:36 +00:00
|
|
|
|
|
|
|
install(TARGETS ${PROJECT_NAME}
|
|
|
|
LIBRARY DESTINATION lib
|
|
|
|
RUNTIME DESTINATION ${ACTIONS_PATH_INSTALL}
|
|
|
|
ARCHIVE DESTINATION lib/static
|
|
|
|
)
|