-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
37 lines (30 loc) · 1.4 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
35
36
37
cmake_minimum_required(VERSION 3.16)
project(cpputest-for-qpcpp-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-qpcpp-lib/cmake CACHE INTERNAL "")
set(CMS_QASSERT_META_TOP_DIR ${CMS_EXTERNALS_TOP_DIR}/qassert-meta)
if(NOT DEFINED CMS_QPCPP_TOP_DIR)
set(CMS_QPCPP_TOP_DIR ${CMS_EXTERNALS_TOP_DIR}/qpcpp)
FetchContent_Declare(qpcpp
GIT_REPOSITORY https://github.com/QuantumLeaps/qpcpp.git
GIT_TAG 10441f7a03fa956b9e4772a073a05a96487983e2 #7.3.4
SOURCE_DIR ${CMS_QPCPP_TOP_DIR}
)
message("Fetching QP/C++ git repository")
FetchContent_MakeAvailable(qpcpp)
endif(NOT DEFINED CMS_QPCPP_TOP_DIR)
# enable the option to build qassert-meta-lib for QP/C++
option(CMS_ENABLE_QASSERT_META_QPCPP "Setup Internal QAssert Meta Data for QP/C++" ON)
FetchContent_Declare(qassert-meta
GIT_REPOSITORY https://github.com/covemountainsoftware/qassert-meta.git
GIT_TAG ac2e18170208b78c797d8d2fc5374a9b2bf981ce
SOURCE_DIR ${CMS_QASSERT_META_TOP_DIR}
)
message("Fetching qassert-meta git repository")
FetchContent_MakeAvailable(qassert-meta)
include(${CMS_CMAKE_DIR}/qpcppCMakeSupport.cmake)
add_subdirectory(cpputest-for-qpcpp-lib)