diff options
author | Sven Gothel <[email protected]> | 2020-09-15 01:47:23 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2020-09-15 01:47:23 +0200 |
commit | f6a9761008c87967d2790e78e362e6366d8fa8af (patch) | |
tree | ebd446a1322e331c9917f4aed91831b0e69b765c /test | |
parent | 24cc8c1bca73f484d21fe8a8b2ab8b0c39d71097 (diff) |
CMake: Support full parallel build by adding target dependencies
C++ Libs -> none (2x)
Java Jar -> none
Java JNI Libs -> C++ Lib + Java Jar (2x)
C++ Examples -> C++ Libs
Java Examples -> Java Jar
Test -> C++ Lib
+++
scripts/[re]build.sh uses `getconf _NPROCESSORS_ONLN`
for the make -j <number of parallel processes>.
Diffstat (limited to 'test')
-rw-r--r-- | test/direct_bt/CMakeLists.txt | 45 |
1 files changed, 27 insertions, 18 deletions
diff --git a/test/direct_bt/CMakeLists.txt b/test/direct_bt/CMakeLists.txt index 4d9e3b51..7e43793a 100644 --- a/test/direct_bt/CMakeLists.txt +++ b/test/direct_bt/CMakeLists.txt @@ -4,60 +4,69 @@ include_directories( ) add_executable (test_functiondef01 test_functiondef01.cpp) -add_executable (test_uuid test_uuid.cpp) -add_executable (test_basictypes01 test_basictypes01.cpp) -add_executable (test_attpdu01 test_attpdu01.cpp) -add_executable (test_lfringbuffer01 test_lfringbuffer01.cpp) -add_executable (test_lfringbuffer11 test_lfringbuffer11.cpp) - set_target_properties(test_functiondef01 PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "-Wall -Wextra -Werror" ) +target_link_libraries (test_functiondef01 direct_bt) +add_dependencies(test_functiondef01 direct_bt) +add_test (NAME functiondef01 COMMAND test_functiondef01) + +add_executable (test_uuid test_uuid.cpp) set_target_properties(test_uuid PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "-Wall -Wextra -Werror" ) +target_link_libraries (test_uuid direct_bt) +add_dependencies(test_uuid direct_bt) +add_test (NAME uuid COMMAND test_uuid) + +add_executable (test_basictypes01 test_basictypes01.cpp) set_target_properties(test_basictypes01 PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "-Wall -Wextra -Werror" ) +target_link_libraries (test_basictypes01 direct_bt) +add_dependencies(test_basictypes01 direct_bt) +add_test (NAME basictypes01 COMMAND test_basictypes01) + +add_executable (test_attpdu01 test_attpdu01.cpp) set_target_properties(test_attpdu01 PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "-Wall -Wextra -Werror" ) +target_link_libraries (test_attpdu01 direct_bt) +add_dependencies(test_attpdu01 direct_bt) +add_test (NAME attpdu01 COMMAND test_attpdu01) + +add_executable (test_lfringbuffer01 test_lfringbuffer01.cpp) set_target_properties(test_lfringbuffer01 PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "-Wall -Wextra -Werror" ) +target_link_libraries (test_lfringbuffer01 direct_bt) +add_dependencies(test_lfringbuffer01 direct_bt) +add_test (NAME lfringbuffer01 COMMAND test_lfringbuffer01) + +add_executable (test_lfringbuffer11 test_lfringbuffer11.cpp) set_target_properties(test_lfringbuffer11 PROPERTIES CXX_STANDARD 17 CXX_STANDARD_REQUIRED ON COMPILE_FLAGS "-Wall -Wextra -Werror" ) - -target_link_libraries (test_functiondef01 direct_bt) -target_link_libraries (test_basictypes01 direct_bt) -target_link_libraries (test_uuid direct_bt) -target_link_libraries (test_attpdu01 direct_bt) -target_link_libraries (test_lfringbuffer01 direct_bt) target_link_libraries (test_lfringbuffer11 direct_bt) - -add_test (NAME functiondef01 COMMAND test_functiondef01) -add_test (NAME basictypes01 COMMAND test_basictypes01) -add_test (NAME uuid COMMAND test_uuid) -add_test (NAME attpdu01 COMMAND test_attpdu01) -add_test (NAME lfringbuffer01 COMMAND test_lfringbuffer01) +add_dependencies(test_lfringbuffer11 direct_bt) add_test (NAME lfringbuffer11 COMMAND test_lfringbuffer11) + |