File tree 10 files changed +39
-17708
lines changed
10 files changed +39
-17708
lines changed Original file line number Diff line number Diff line change 1
- build
1
+ build
2
+ # ## CMake ###
3
+ CMakeLists.txt.user
4
+ CMakeCache.txt
5
+ CMakeFiles
6
+ CMakeScripts
7
+ Testing
8
+ Makefile
9
+ cmake_install.cmake
10
+ install_manifest.txt
11
+ compile_commands.json
12
+ CTestTestfile.cmake
13
+ _deps
14
+
15
+ # ## CMake Patch ###
16
+ # External projects
17
+ * -prefix /
Original file line number Diff line number Diff line change 1
1
##########################################################################
2
2
3
3
set (CMAKE_VERBOSE_MAKEFILE ON )
4
- cmake_minimum_required (VERSION 2.8 )
4
+ cmake_minimum_required (VERSION 3.5 )
5
5
6
6
##########################################################################
7
7
8
8
project (testArduinoBLE)
9
9
10
+ Include (FetchContent)
11
+
12
+ FetchContent_Declare(
13
+ Catch2
14
+ GIT_REPOSITORY https://github.com/catchorg/Catch2.git
15
+ GIT_TAG v3.4.0
16
+ )
17
+
18
+ FetchContent_MakeAvailable(Catch2)
19
+
10
20
##########################################################################
11
21
12
22
set (CMAKE_CXX_STANDARD 11)
@@ -102,7 +112,6 @@ include_directories(../../src)
102
112
include_directories (../../src/local)
103
113
include_directories (../../src/remote)
104
114
include_directories (../../src/utility)
105
- include_directories (external/catch/v2.12.1/include )
106
115
107
116
target_include_directories (TEST_TARGET_DISC_DEVICE PUBLIC include /test_discovered_device)
108
117
target_include_directories (TEST_TARGET_ADVERTISING_DATA PUBLIC include /test_advertising_data)
@@ -124,3 +133,7 @@ add_custom_command(TARGET TEST_TARGET_DISC_DEVICE POST_BUILD
124
133
add_custom_command (TARGET TEST_TARGET_ADVERTISING_DATA POST_BUILD
125
134
COMMAND ${CMAKE_RUNTIME_OUTPUT_DIRECTORY} /TEST_TARGET_ADVERTISING_DATA
126
135
)
136
+
137
+ target_link_libraries ( TEST_TARGET_UUID Catch2WithMain )
138
+ target_link_libraries ( TEST_TARGET_DISC_DEVICE Catch2WithMain )
139
+ target_link_libraries ( TEST_TARGET_ADVERTISING_DATA Catch2WithMain )
You can’t perform that action at this time.
0 commit comments