CMake: Install cinema with tests
Vicki Pfau vi@endrift.com
Thu, 03 Sep 2020 17:18:28 -0700
1 files changed,
1 insertions(+),
0 deletions(-)
jump to
M
src/platform/test/CMakeLists.txt
→
src/platform/test/CMakeLists.txt
@@ -44,4 +44,5 @@ add_executable(${BINARY_NAME}-cinema ${CMAKE_CURRENT_SOURCE_DIR}/cinema-main.c)
target_link_libraries(${BINARY_NAME}-cinema ${BINARY_NAME} ${PLATFORM_LIBRARY}) set_target_properties(${BINARY_NAME}-cinema PROPERTIES COMPILE_DEFINITIONS "${OS_DEFINES};${FEATURE_DEFINES};${FUNCTION_DEFINES}") add_test(cinema ${BINARY_NAME}-cinema -v) + install(TARGETS ${BINARY_NAME}-cinema DESTINATION ${CMAKE_INSTALL_BINDIR} COMPONENT ${BINARY_NAME}-test) endif()