forked from DLopezMadrid/tracerr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt.in
45 lines (39 loc) · 1.62 KB
/
CMakeLists.txt.in
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
38
39
40
41
42
43
44
45
# file to configure and download gtest from the main CMakeLists.txt
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 master
SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-src"
BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/googletest-build"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
)
#project(protobuf-download NONE)
#include(ExternalProject)
#ExternalProject_Add(protobuf
# GIT_REPOSITORY https://github.com/protocolbuffers/protobuf.git
# GIT_TAG master
# SOURCE_DIR "${CMAKE_CURRENT_BINARY_DIR}/protobuf-src"
# # BINARY_DIR "${CMAKE_CURRENT_BINARY_DIR}/protobuf-build"
# INSTALL_DIR "${CMAKE_CURRENT_BINARY_DIR}/protobuf-install"
# BUILD_IN_SOURCE true
# #PREFIX ${CMAKE_CURRENT_BINARY_DIR}/protobuf-install
# CONFIGURE_COMMAND "${CMAKE_CURRENT_BINARY_DIR}/protobuf-src/autogen.sh"
# COMMAND "${CMAKE_CURRENT_BINARY_DIR}/protobuf-src/configure" "--prefix=${CMAKE_CURRENT_BINARY_DIR}/protobuf-install"
# BUILD_COMMAND "$(MAKE)"
# #COMMAND "MAKE check"
# #INSTALL_COMMAND "$(MAKE install)"
# #INSTALL_COMMAND CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_SOURCE_DIR}/include
# TEST_COMMAND ""
#)
project(eigen-download NONE)
include(ExternalProject)
ExternalProject_Add(eigen
URL "https://gitlab.com/libeigen/eigen/-/archive/3.3.7/eigen-3.3.7.tar.gz"
PREFIX ${CMAKE_CURRENT_BINARY_DIR}/external/eigen
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX:PATH=${CMAKE_SOURCE_DIR}
)