-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
64 lines (46 loc) · 1.83 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
#
# EqVTK
# Copyright (C) 2013 Juan Hernando [email protected]
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License version 2.1 as published
# by the Free Software Foundation.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
# FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
# more details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
cmake_minimum_required(VERSION 2.8.8 FATAL_ERROR)
project(EqVTK)
###############################################################################
## BUILDYARD BOOTSTRAP
list(APPEND CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMake")
include(Buildyard)
if(BUILDYARD_STOP)
return()
endif()
###############################################################################
## COMMON OPTIONS
include(Common)
if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE Debug)
endif(NOT CMAKE_BUILD_TYPE)
include_directories(${CMAKE_SOURCE_DIR})
set(_paths_cpp_in ${CMAKE_SOURCE_DIR}/common/paths.cpp.in)
macro(CONFIGURE_PATHS PATHS_FILE)
set(CONFIG_SHADER_PATH ${CMAKE_CURRENT_SOURCE_DIR}/shaders)
set(CONFIG_DATA_PATH ${CMAKE_SOURCE_DIR}/datasets)
configure_file(${_paths_cpp_in} ${CMAKE_CURRENT_BINARY_DIR}/paths.cpp)
set(${PATHS_FILE} ${CMAKE_CURRENT_BINARY_DIR}/paths.cpp)
endmacro()
###############################################################################
## EXTERNAL DEPENDENCIES
include(FindPackages)
include(${VTK_USE_FILE})
###############################################################################
## SUBPROJECTS
add_subdirectory(eqVTK)