File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 11project (tests CXX)
22set (OUTPUT_DIR ${CMAKE_BINARY_DIR} )
33
4+ include (${PROJECT_SOURCE_DIR} /../cmake/PlatformDetect.cmake)
5+ plibsys_detect_target_os (PLIBSYS_TESTS_TARGET_OS)
6+
47if (NOT PLIBSYS_TESTS_STATIC)
58 find_package (Boost COMPONENTS unit_test_framework REQUIRED)
69 include_directories (${Boost_INCLUDE_DIR} )
@@ -158,6 +161,11 @@ add_executable (ptree_test ${PTREE_TEST_SRCS})
158161target_link_libraries (ptree_test ${Boost_LIBRARIES} plibsys)
159162set_target_properties (ptree_test PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIR} )
160163
164+ # QNX requires libm for sqrt() and friends
165+ if (PLIBSYS_TESTS_TARGET_OS STREQUAL qnx)
166+ target_link_libraries (ptree_test m)
167+ endif ()
168+
161169set (PTYPES_TEST_SRCS ptypes_test.cpp)
162170add_executable (ptypes_test ${PTYPES_TEST_SRCS} )
163171target_link_libraries (ptypes_test ${Boost_LIBRARIES} plibsys)
You can’t perform that action at this time.
0 commit comments