File tree Expand file tree Collapse file tree 4 files changed +13
-9
lines changed
Expand file tree Collapse file tree 4 files changed +13
-9
lines changed Original file line number Diff line number Diff line change 1- [submodule "externals/qpc "]
2- path = externals/qpc
3- url = git@github.com:QuantumLeaps/qpc.git
Original file line number Diff line number Diff line change 11cmake_minimum_required (VERSION 3.16)
22project (cpputest-for-qpc-lib)
3+ include (FetchContent)
34
45set (CMAKE_CXX_STANDARD 14)
56set (CMAKE_C_STANDARD 11)
@@ -8,11 +9,17 @@ add_compile_options(-Wall -Wextra -Werror)
89
910set (CMS_EXTERNALS_TOP_DIR ${CMAKE_CURRENT_SOURCE_DIR} /externals)
1011set (CMS_CMAKE_DIR ${CMAKE_CURRENT_SOURCE_DIR} /cpputest-for-qpc-lib/cmake)
11- set (CMS_QPC_TOP_DIR ${CMS_EXTERNALS_TOP_DIR} /qpc)
1212
13- include (${CMS_CMAKE_DIR} /qpcCMakeSupport.cmake)
14-
15- # todo: if not set then use externals
16- set (CMS_QPC_TOP_DIR ${EXTERNALS_TOP_DIR} /qpc)
13+ if (NOT DEFINED CMS_QPC_TOP_DIR)
14+ set (CMS_QPC_TOP_DIR ${CMS_EXTERNALS_TOP_DIR} /qpc)
15+ FetchContent_Declare(qpc
16+ GIT_REPOSITORY https://github.com/QuantumLeaps/qpc.git
17+ GIT_TAG fcea9943bbeeca49c66ce124d4d71467f6e2661e #7.3.3
18+ SOURCE_DIR ${CMS_QPC_TOP_DIR}
19+ )
20+ message ("Fetching QP/C git repository" )
21+ FetchContent_MakeAvailable(qpc)
22+ endif (NOT DEFINED CMS_QPC_TOP_DIR)
1723
24+ include (${CMS_CMAKE_DIR} /qpcCMakeSupport.cmake)
1825add_subdirectory (cpputest-for-qpc-lib)
Original file line number Diff line number Diff line change 1+ qpc /
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments