-
Notifications
You must be signed in to change notification settings - Fork 18
/
CMakeLists-ExternalProjects.txt
103 lines (92 loc) · 3.42 KB
/
CMakeLists-ExternalProjects.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
include(ExternalProject)
# Builds external third party projects.
# The parent script needs to define the "GLOBAL_OUTPUT_PATH" variable,
# which will be used as output directory for all *.lib, *.dll, *.a, *.so, *.pdb files.
###############################################################################
# HumbleLogging
###############################################################################
ExternalProject_Add(
HumbleLogging
GIT_REPOSITORY "https://github.com/mfreiholz/humble-logging-library.git"
GIT_TAG "master"
UPDATE_COMMAND ""
PATCH_COMMAND ""
SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/humblelogging"
CMAKE_ARGS -DBuildShared=ON -DBuildExamples=OFF -DCMAKE_INSTALL_PREFIX=${GLOBAL_OUTPUT_PATH}/humblelogging
TEST_COMMAND ""
)
ExternalProject_Add_Step(
HumbleLogging CopyToBin
COMMAND ${CMAKE_COMMAND} -E copy_directory ${GLOBAL_OUTPUT_PATH}/humblelogging/bin ${GLOBAL_OUTPUT_PATH}
COMMAND ${CMAKE_COMMAND} -E copy_directory ${GLOBAL_OUTPUT_PATH}/humblelogging/lib ${GLOBAL_OUTPUT_PATH}
DEPENDEES install
)
set(HumbleLogging_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/humblelogging/include")
set(HumbleLogging_LIBRARIES "${CMAKE_SHARED_LIBRARY_PREFIX}humblelogging${CMAKE_SHARED_LIBRARY_SUFFIX}")
include_directories(${HumbleLogging_INCLUDE_DIRS})
###############################################################################
# Google Prototype Buffers (protobuf)
# VS2008 Issue: Doesn't support OutDir/OutputPath
###############################################################################
#if(WIN32)
#
# ExternalProject_Add(
# protobuf
#
# URL https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
#
# UPDATE_COMMAND ""
# PATCH_COMMAND ""
#
# SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/protobuf"
# CONFIGURE_COMMAND ""
#
# BUILD_COMMAND devenv /upgrade ${CMAKE_SOURCE_DIR}/3rdparty/protobuf/vsprojects/protobuf.sln
# COMMAND msbuild /p:OutputPath=${GLOBAL_OUTPUT_PATH}/protobuf/ /p:OutDir=${GLOBAL_OUTPUT_PATH}/protobuf/ ${CMAKE_SOURCE_DIR}/3rdparty/protobuf/vsprojects/protobuf.sln
#
# INSTALL_COMMAND ""
#
# TEST_COMMAND ""
# )
#
# ExternalProject_Add_Step(
# protobuf CopyToBin
# COMMAND ${CMAKE_COMMAND} -E copy_directory ${GLOBAL_OUTPUT_PATH}/protobuf ${GLOBAL_OUTPUT_PATH}
# DEPENDEES install
# )
#
# set(protobuf_INCLUDE_DIRS ${CMAKE_SOURCE_DIR}/3rdparty/protobuf/src/google/protobuf)
# set(protobuf_LIBRARIES ${CMAKE_SHARED_LIBRARY_PREFIX}protobuf${CMAKE_SHARED_LIBRARY_SUFFIX})
# include_directories(${protobuf_INCLUDE_DIRS})
#
#else(WIN32)
#
# ExternalProject_Add(
# protobuf
#
# URL https://protobuf.googlecode.com/files/protobuf-2.5.0.tar.gz
#
# UPDATE_COMMAND ""
# PATCH_COMMAND ""
#
# SOURCE_DIR "${CMAKE_SOURCE_DIR}/3rdparty/protobuf"
# CONFIGURE_COMMAND "${CMAKE_SOURCE_DIR}/3rdparty/protobuf/configure" --prefix=${GLOBAL_OUTPUT_PATH}/protobuf
#
# BUILD_COMMAND make
#
# INSTALL_COMMAND make install
#
# TEST_COMMAND ""
# )
#
# ExternalProject_Add_Step(
# protobuf CopyToBin
# COMMAND ${CMAKE_COMMAND} -E copy_directory ${GLOBAL_OUTPUT_PATH}/protobuf ${GLOBAL_OUTPUT_PATH}
# DEPENDEES install
# )
#
# set(protobuf_INCLUDE_DIRS ${GLOBAL_OUTPUT_PATH}/protobuf/include)
# set(protobuf_LIBRARIES ${GLOBAL_OUTPUT_PATH}/protobuff/lib/)
# include_directories(${protobuf_INCLUDE_DIRS})
#
#endif(WIN32)