forked from eclipse-iceoryx/iceoryx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
iox-eclipse-iceoryx#33 added gtest downloading in windows cmake; adju…
…sted some unit test dependencies in cmake Signed-off-by: Christian Eltzschig <christian.eltzschig2@de.bosch.com>
- Loading branch information
Showing
2 changed files
with
24 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,27 @@ | ||
cmake_minimum_required(VERSION 3.5) | ||
cmake_minimum_required(VERSION 3.14) | ||
set(iceoryx_VERSION 0.16.0.1) | ||
|
||
project(iceoryx VERSION ${iceoryx_VERSION}) | ||
include(FetchContent) | ||
|
||
if(test) | ||
FetchContent_Declare( | ||
GOOGLETEST | ||
GIT_REPOSITORY https://github.com/google/googletest.git | ||
GIT_TAG release-1.10.0 | ||
) | ||
FetchContent_GetProperties(GOOGLETEST) | ||
if (NOT googletest_POPULATED) | ||
message(STATUS "updating: googletest" ) | ||
FetchContent_Populate(GOOGLETEST) | ||
add_subdirectory(${googletest_SOURCE_DIR} ${googletest_BINARY_DIR}) | ||
set(GTest_FOUND true) | ||
add_library(GTest::gtest ALIAS gtest) | ||
add_library(GTest::gmock ALIAS gmock) | ||
endif() | ||
endif(test) | ||
|
||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/iceoryx_utils ) | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/iceoryx_posh ) | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/iceoryx_examples/icedelivery ) | ||
add_subdirectory(${CMAKE_CURRENT_LIST_DIR}/iceoryx_examples/iceperf ) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters