-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
38 lines (29 loc) · 797 Bytes
/
CMakeLists.txt
File metadata and controls
38 lines (29 loc) · 797 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
cmake_minimum_required(VERSION 3.15.3)
project(simple_slave C CXX ASM)
IF(TEST)
enable_testing()
# GoogleTest requires at least C++14
set(CMAKE_CXX_STANDARD 14)
include(FetchContent)
FetchContent_Declare(
googletest
GIT_REPOSITORY https://github.com/google/googletest.git
GIT_TAG release-1.12.1
)
# For Windows: Prevent overriding the parent project's compiler/linker settings
set(gtest_force_shared_crt ON CACHE BOOL "" FORCE)
FetchContent_MakeAvailable(googletest)
include(CTest)
add_subdirectory (infra)
add_subdirectory (app)
add_subdirectory (hal)
add_subdirectory (board)
add_subdirectory (lib)
ELSE()
add_subdirectory (board)
add_subdirectory (product)
add_subdirectory (lib)
add_subdirectory (hal)
add_subdirectory (infra)
add_subdirectory (app)
ENDIF()