CMakeLists.txt 801 Bytes
Newer Older
schultezub's avatar
schultezub committed
1
PROJECT(campvis-modules)
schultezub's avatar
 
schultezub committed
2
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)
3
#INCLUDE(../cmake/commonconf.cmake)
schultezub's avatar
 
schultezub committed
4

schultezub's avatar
schultezub committed
5
MESSAGE(STATUS "Configuring Campvis Modules")
schultezub's avatar
 
schultezub committed
6

7
ADD_LIBRARY(campvis-modules
schultezub's avatar
schultezub committed
8
    ${CampvisModulesSources} ${CampvisModulesHeaders} 
schultezub's avatar
 
schultezub committed
9
10
)

11
# TODO: Remove Qt dependency as soon as the pipelines got cleaned up (and thus removed their hard link to tgt/qt/qtcontextmanager.h
schultezub's avatar
 
schultezub committed
12

schultezub's avatar
schultezub committed
13
FIND_PACKAGE(Qt4 ${CampvisRequiredQtVersion} REQUIRED QtCore QtGui QtOpenGL)
schultezub's avatar
 
schultezub committed
14
15
INCLUDE(${QT_USE_FILE})

16

schultezub's avatar
schultezub committed
17
18
19
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
TARGET_LINK_LIBRARIES(campvis-modules campvis-core tgt ${CampvisGlobalExternalLibs} ${CampvisModulesExternalLibs} ${QT_LIBRARIES})