-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
83 lines (69 loc) · 3.63 KB
/
CMakeLists.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
# ;--------------------------------------------------------------------------------
# ; Initials
# ;--------------------------------------------------------------------------------
cmake_minimum_required(VERSION 3.0 FATAL_ERROR)
project(BezierPathIteration)
# ;--------------------------------------------------------------------------------
# ; Intro
# ;--------------------------------------------------------------------------------
MESSAGE(STATUS ";--------------------------------------------------------------------------------")
MESSAGE(STATUS "; <${PROJECT_NAME}> CMake Script v0.0.2.[8]")
MESSAGE(STATUS ";--------------------------------------------------------------------------------")
# ;--------------------------------------------------------------------------------
# ; libcinder Main Location
# ;--------------------------------------------------------------------------------
# Please make sure to have the environment variable $CINDER_PATH set to point to your
# libcinder location. The alternative flow below is a proprietary workflow that works
# only inside my environment.
if (DEFINED ENV{CINDER_PATH})
# Environment constructs.
set(CINDER_PATH $ENV{CINDER_PATH})
else(DEFINED ENV{CINDER_PATH})
# Specific construct.
set(current_package_slot "cinder-dev-0.9.1")
# set(current_package_architecture "x86_64")
set(current_package_architecture "")
# Generic constructs.
set(local_packages $ENV{UNIMOG_LOCAL_PACKAGES})
set(current_package_absolute_path ${local_packages}/libs/${current_package_architecture}/${current_package_slot})
# Make sure that the location is an absolute path.
get_filename_component(CINDER_PATH "${current_package_absolute_path}" ABSOLUTE)
# Verbose
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) Searching for package: ${current_package_slot}")
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) Fetching local packages from: ${local_packages}")
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) Current package architecture: ${current_package_architecture}")
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) Current package search path: ${current_package_absolute_path}")
endif()
# Verbose
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) \${CINDER_PATH}\ returns: ${CINDER_PATH}")
if(IS_DIRECTORY ${CINDER_PATH})
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) \${CINDER_PATH}\ is a valid directory.")
else()
MESSAGE(STATUS "; <${PROJECT_NAME}> (ERROR) \${CINDER_PATH}\ is a NOT valid path!")
MESSAGE(FATAL_ERROR "Build process terminated.")
endif()
SET(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CINDER_PATH}/proj/cmake/modules)
MESSAGE(STATUS "; <${PROJECT_NAME}> (DEBUG) \${CMAKE_MODULE_PATH}\ returns: ${CMAKE_MODULE_PATH}")
MESSAGE(STATUS ";--------------------------------------------------------------------------------")
# ;--------------------------------------------------------------------------------
# ; Project Specific Sources and Includes
# ;--------------------------------------------------------------------------------
set(PROJECT_SOURCE_FILES
src/BezierPathIterationApp.cpp
)
set(PROJECT_INCLUDE_FILES
src/BezierPathIterationApp.h
)
# ;--------------------------------------------------------------------------------
# ; Load Module
# ;--------------------------------------------------------------------------------
include(cinderMakeApp)
# ;--------------------------------------------------------------------------------
# ; Build the App
# ;--------------------------------------------------------------------------------
ci_make_app(
SOURCES ${PROJECT_SOURCE_FILES}
INCLUDES ${PROJECT_INCLUDE_FILES}
CINDER_PATH ${CINDER_PATH}
)
# vim: fdm=marker ts=4