File: CMakeLists.txt

package info (click to toggle)
vite 1.1-4
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 15,296 kB
  • ctags: 4,426
  • sloc: cpp: 21,696; ansic: 20,533; sh: 10,218; python: 660; makefile: 439
file content (27 lines) | stat: -rw-r--r-- 638 bytes parent folder | download
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
PROJECT(VITE CXX C)

CMAKE_MINIMUM_REQUIRED(VERSION 2.4)

IF(COMMAND CMAKE_POLICY)
  # CMP0003: add the link paths to the link command as with cmake 2.4
  CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)

FIND_PACKAGE(Qt4
  COMPONENTS QtCore  QtGui QtXml REQUIRED)
SET(QT_USE_QTUITOOLS ON)
SET(QT_USE_QTOPENGL ON)
INCLUDE(${QT_USE_FILE})

OPTION(VITE_ENABLE_VBO "Enable the support of VBO." OFF)
IF(VITE_ENABLE_VBO)
  INCLUDE(cmake/FindGLEW.cmake)
ENDIF(VITE_ENABLE_VBO)

OPTION(VITE_ENABLE_OTF "Enable the support of OTF file format." OFF)
IF(VITE_ENABLE_OTF)
  INCLUDE(cmake/FindOTF.cmake)
ENDIF(VITE_ENABLE_OTF)


SUBDIRS(src)