CMakeLists.txt 883 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
LINK_DIRECTORIES(${CampvisGlobalLinkDirectories} ${CampvisModulesLinkDirectories})
8
ADD_LIBRARY(campvis-modules
schultezub's avatar
schultezub committed
9
    ${CampvisModulesSources} ${CampvisModulesHeaders} 
schultezub's avatar
 
schultezub committed
10
11
)

12
# 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
13

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

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})