-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt.in
35 lines (26 loc) · 1.17 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
include(ExternalProject)
# Builds external third party projects.
# The parent script needs to define the "GLOBAL_OUTPUT_PATH" variable,
###############################################################################
# LUACPPTEMPLATER
###############################################################################
ExternalProject_Add(
LuaCppTemplater
GIT_REPOSITORY "https://github.com/amsharifian/luacpptemplater.git"
GIT_TAG "master"
UPDATE_COMMAND ""
PATCH_COMMAND ""
SOURCE_DIR "${CMAKE_SOURCE_DIR}/luacpptemplater"
CMAKE_ARGS -DCMAKE_INSTALL_PREFIX=${GLOBAL_OUTPUT_PATH}/luacpptemplater
TEST_COMMAND ""
)
ExternalProject_Add_Step(
LuaCppTemplater CopyToBin
COMMAND ${CMAKE_COMMAND} -E copy_directory ${GLOBAL_OUTPUT_PATH}/luacpptemplater/lib ${GLOBAL_OUTPUT_PATH}
DEPENDEES install
)
set(LuaCppTemplater_INCLUDE_DIRS "${GLOBAL_OUTPUT_PATH}/luacpptemplater/include")
set(LuaCppTemplater_LIB_DIRS "${GLOBAL_OUTPUT_PATH}/luacpptemplater/lib")
set(LuaCppTemplater_LIBRARIES "${CMAKE_SHARED_LIBRARY_PREFIX}luacpptemplater${CMAKE_SHARED_LIBRARY_SUFFIX}")
link_directories(${LuaCppTemplater_LIB_DIRS})
include_directories(${LuaCppTemplater_INCLUDE_DIRS})