github.com/igggame/nebulas-go@v2.1.0+incompatible/nbre/test/common/CMakeLists.txt (about) 1 add_executable(test_common main.cpp 2 gtest_util.cpp 3 gtest_util_json.cpp 4 gtest_math.cpp 5 gtest_conversion.cpp 6 gtest_ff_net.cpp 7 ) 8 9 add_executable(test_timer_loop test_timer_loop.cpp) 10 add_executable(test_math test_math.cpp) 11 add_executable(test_conversion test_conversion.cpp) 12 13 target_link_libraries(test_common nbre_rt ${gtest_lib}) 14 target_link_libraries(test_timer_loop nbre_rt) 15 target_link_libraries(test_math nbre_rt) 16 target_link_libraries(test_conversion nbre_rt) 17 18 #gtest_discover_tests(test_common) 19 20 add_test(NAME test_common 21 COMMAND test_common) 22 set_tests_properties( 23 test_common PROPERTIES 24 ENVIRONMENT "LD_LIBRARY_PATH=${PROJECT_SOURCE_DIR}/lib/lib" 25 ) 26 27 #add_subdirectory(ipc) 28 29