-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCinder.cmake.in
36 lines (33 loc) · 1.13 KB
/
Cinder.cmake.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
cmake_minimum_required(VERSION 2.8.2)
project(cinder-download NONE)
include(ExternalProject)
if(CMAKE_BUILD_TYPE EQUAL "RELEASE")
ExternalProject_Add(cinder
EXCLUDE_FROM_ALL
GIT_REPOSITORY https://github.com/cinder/Cinder.git
GIT_TAG master
SOURCE_DIR "${CMAKE_BINARY_DIR}/cinder-src"
BINARY_DIR "${CMAKE_BINARY_DIR}/cinder-build"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
PATCH_COMMAND git apply --ignore-space-change --ignore-whitespace ${CMAKE_SOURCE_DIR}/cmake/linux_hdpi.patch
# UPDATE_DISCONNECTED TRUE
GIT_PROGRESS TRUE
)
else()
ExternalProject_Add(cinder
GIT_REPOSITORY https://github.com/cinder/Cinder.git
GIT_TAG master
SOURCE_DIR "${CMAKE_BINARY_DIR}/cinder-src"
BINARY_DIR "${CMAKE_BINARY_DIR}/cinder-build"
CONFIGURE_COMMAND ""
BUILD_COMMAND ""
INSTALL_COMMAND ""
TEST_COMMAND ""
PATCH_COMMAND git apply --ignore-space-change --ignore-whitespace ${CMAKE_SOURCE_DIR}/cmake/linux_hdpi.patch
# UPDATE_DISCONNECTED TRUE
GIT_PROGRESS TRUE
)
endif()