-
Notifications
You must be signed in to change notification settings - Fork 58
/
CMakeLists.txt
62 lines (53 loc) · 1.75 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
# Copyright (C) 2008 Cedric Pinson, Jeremy Moles
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#
# Authors:
# Jeremy Moles <[email protected]>
# Cedric Pinson <[email protected]>
PROJECT(osgexporter)
SET(CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/CMakeModules/")
CMAKE_MINIMUM_REQUIRED(VERSION 2.4.7)
IF(COMMAND cmake_policy)
cmake_policy(SET CMP0003 NEW)
ENDIF(COMMAND cmake_policy)
# Let's set up our PACKAGING information.
SET(CPACK_GENERATOR TGZ)
SET(CPACK_SOURCE_GENERATOR TGZ)
SET(CPACK_SOURCE_IGNORE_FILES
"~$"
".*.pyc"
"\\\\.hgignore$"
"\\\\.hgtags$"
"\\\\.hg/"
".*build/"
".*debug/"
".*release/"
".*web/"
)
SET(OSGEXPORTER_VERSION "0.0.1")
SET(CPACK_SOURCE_PACKAGE_FILE_NAME "osgexporter-${OSGEXPORTER_VERSION}")
SET(BLENDER "blender" CACHE FILEPATH "(Absolute) path to blender binary")
SET(EXPORTER "${PROJECT_SOURCE_DIR}/exporter" CACHE FILEPATH "(Absolute) path to exporter modules")
OPTION(TEST "Enable test" OFF)
OPTION(BUILD_DATA "Build samples" ON)
IF(TEST)
ENABLE_TESTING()
SET(BUILD_DATA ON)
ENDIF(TEST)
ADD_SUBDIRECTORY(samples)
IF(TEST)
ADD_SUBDIRECTORY(tests/)
ENDIF(TEST)