mirror of
https://gitee.com/mirrors_PX4/PX4-Autopilot.git
synced 2026-10-29 01:13:35 +08:00
Problem: It's really hard to get Libuavcan tests building on a mac or other platform if googletest isn't installed. Solution: add "if linux" guards to problem areas. Also include googletest as recommended in the googletest project's README. Testing: Successfully built on OSX sierra using gcc6
16 lines
462 B
Plaintext
16 lines
462 B
Plaintext
cmake_minimum_required(VERSION 2.8.2)
|
|
|
|
project(googletest-download NONE)
|
|
|
|
include(ExternalProject)
|
|
ExternalProject_Add(googletest
|
|
GIT_REPOSITORY https://github.com/google/googletest.git
|
|
GIT_TAG 98a0d007d7092b72eea0e501bb9ad17908a1a036
|
|
SOURCE_DIR "${CMAKE_BINARY_DIR}/googletest-src"
|
|
BINARY_DIR "${CMAKE_BINARY_DIR}/googletest-build"
|
|
CONFIGURE_COMMAND ""
|
|
BUILD_COMMAND ""
|
|
INSTALL_COMMAND ""
|
|
TEST_COMMAND ""
|
|
)
|