-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
34 lines (28 loc) · 1.23 KB
/
CMakeLists.txt
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
cmake_minimum_required(VERSION 3.16)
project(cpputest-for-qpc-lib VERSION 1.3.0)
include(FetchContent)
set(CMAKE_CXX_STANDARD 14)
set(CMAKE_C_STANDARD 11)
add_compile_options(-Wall -Wextra -Werror)
set(CMS_EXTERNALS_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR}/externals)
set(CMS_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR}/cpputest-for-qpc-lib/cmake CACHE INTERNAL "")
set(CMS_QASSERT_META_TOP_DIR ${CMS_EXTERNALS_TOP_DIR}/qassert-meta)
if(NOT DEFINED CMS_QPC_TOP_DIR)
set(CMS_QPC_TOP_DIR ${CMS_EXTERNALS_TOP_DIR}/qpc)
FetchContent_Declare(qpc
GIT_REPOSITORY https://github.com/QuantumLeaps/qpc.git
GIT_TAG fcea9943bbeeca49c66ce124d4d71467f6e2661e #7.3.3
SOURCE_DIR ${CMS_QPC_TOP_DIR}
)
message("Fetching QP/C git repository")
FetchContent_MakeAvailable(qpc)
endif(NOT DEFINED CMS_QPC_TOP_DIR)
FetchContent_Declare(qassert-meta
GIT_REPOSITORY https://github.com/covemountainsoftware/qassert-meta.git
GIT_TAG a53c87e1a351f9c0444fcd2c68bb0583e2109b11
SOURCE_DIR ${CMS_QASSERT_META_TOP_DIR}
)
message("Fetching qassert-meta git repository")
FetchContent_MakeAvailable(qassert-meta)
include(${CMS_CMAKE_DIR}/qpcCMakeSupport.cmake)
add_subdirectory(cpputest-for-qpc-lib)