cmake: Support BlackBerry QNX (#364)

This commit is contained in:
JaiXJM-BB 2024-12-13 18:00:05 -05:00 committed by GitHub
parent 3c4399ba46
commit 58cf1ef6d0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -168,6 +168,24 @@ add_executable (gflags_declare_test gflags_declare_test.cc gflags_declare_flags.
add_test(NAME gflags_declare COMMAND gflags_declare_test --message "Hello gflags!")
set_tests_properties(gflags_declare PROPERTIES PASS_REGULAR_EXPRESSION "Hello gflags!")
# ----------------------------------------------------------------------------
# qnx specific test installation (ctest not compatible)
if (QNX)
install (
DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}
DESTINATION ${RUNTIME_INSTALL_DIR}/gflags_tests
)
install (
DIRECTORY ${PROJECT_SOURCE_DIR}/test/
DESTINATION ${RUNTIME_INSTALL_DIR}/gflags_tests
FILES_MATCHING
PATTERN "flagfile.*"
PATTERN "gflags_unittest_flagfile"
PATTERN "config" EXCLUDE
PATTERN "nc" EXCLUDE
)
endif ()
# ----------------------------------------------------------------------------
# configure Python script which configures and builds a test project
if (BUILD_NC_TESTS OR BUILD_CONFIG_TESTS)