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 | a9f68522e8d16da2f6aa22a8a3de692261e8930d (patch) | |
tree | c9fb59ebb772772ea89dcb013386cd7930c4d3ec /test | |
parent | 862fe4d02b1b6caae8d13872daf72adce8e323a9 (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 4d9e3b5..7e43793 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) + |