forked from mxncr/femb
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
65 lines (49 loc) · 2.02 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
##############################################################################
# CMake file for femb
##############################################################################
# CMake 2.8.11 is required for 2 reasons:
# - it is the first version that fully supports the specification of Visual
# Studio toolsets (v110_xp).
# - it is the version that supports the command string(TIMESTAMP ...)
cmake_minimum_required(VERSION 2.8.11)
project(femb)
if(EXISTS ${CMAKE_SOURCE_DIR}/../../../../Vorpaline/trunk/)
set(
GEOGRAM_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../../../Vorpaline/trunk"
CACHE PATH "full path to the Geogram (or Vorpaline) installation"
)
else()
set(
GEOGRAM_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../../geogram/"
CACHE PATH "full path to the Geogram (or Vorpaline) installation"
)
endif()
set(
GRAPHITE_SOURCE_DIR "${CMAKE_SOURCE_DIR}/../../../GraphiteThree/"
CACHE PATH "full path to the Graphite installation"
)
include(${GRAPHITE_SOURCE_DIR}/cmake/graphite.cmake)
if(EXISTS ${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
message(STATUS "Using options file: ${CMAKE_SOURCE_DIR}/CMakeOptions.txt")
include(${CMAKE_SOURCE_DIR}/CMakeOptions.txt)
endif()
##############################################################################
include_directories(${CMAKE_SOURCE_DIR}/../../)
# DLLs/shared objects are generated in Graphite binary directory
set(
CMAKE_RUNTIME_OUTPUT_DIRECTORY
${GRAPHITE_SOURCE_DIR}/${RELATIVE_BIN_OUTPUT_DIR}
)
set(
CMAKE_LIBRARY_OUTPUT_DIRECTORY
${GRAPHITE_SOURCE_DIR}/${RELATIVE_LIB_OUTPUT_DIR}
)
##############################################################################
aux_source_directories(SOURCES "Source Files\\common" common)
aux_source_directories(SOURCES "Source Files\\algo" algo)
aux_source_directories(SOURCES "Source Files\\commands" commands)
gomgen(femb)
add_library(femb ${SOURCES})
target_link_libraries(femb mesh scene_graph skin gom_gom gom)
target_link_libraries(femb renderer image basic)
target_link_libraries(femb geogram_gfx geogram)