CMakeLists.txt 1.24 KB
Newer Older
schultezub's avatar
schultezub committed
1
PROJECT(campvis-core)
schultezub's avatar
schultezub committed
2
3
4
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)
INCLUDE(../cmake/commonconf.cmake)

schultezub's avatar
schultezub committed
5
MESSAGE(STATUS "Configuring CAMPVis Core")
schultezub's avatar
schultezub committed
6

schultezub's avatar
schultezub committed
7
FILE(GLOB CampvisCoreSources RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
8
    classification/*.cpp
schultezub's avatar
schultezub committed
9
    datastructures/*.cpp
schultezub's avatar
schultezub committed
10
    eventhandlers/*.cpp
11
    pipeline/*.cpp
schultezub's avatar
schultezub committed
12
    properties/*.cpp
schultezub's avatar
schultezub committed
13
    tools/*.cpp
schultezub's avatar
schultezub committed
14
15
)

schultezub's avatar
schultezub committed
16
FILE(GLOB CampvisCoreHeaders RELATIVE ${CMAKE_CURRENT_SOURCE_DIR}
17
    classification/*.h
schultezub's avatar
schultezub committed
18
    datastructures/*.h
schultezub's avatar
schultezub committed
19
    eventhandlers/*.h
20
    pipeline/*.h
schultezub's avatar
schultezub committed
21
    properties/*.h
schultezub's avatar
schultezub committed
22
23
24
25
26
    tools/*.h
    glsl/*.vert
    glsl/*.frag
    glsl/tools/*.vert
    glsl/tools/*.frag
schultezub's avatar
schultezub committed
27
28
)

schultezub's avatar
schultezub committed
29
#SET(CampvisCoreSources
schultezub's avatar
schultezub committed
30
31
#    application/campvis.cpp
#    application/campvispainter.cpp
schultezub's avatar
schultezub committed
32
33
34
#    datastructures/
#)

schultezub's avatar
schultezub committed
35
#SET(CampvisCoreHeaders 
schultezub's avatar
schultezub committed
36
#    application/campvispainter.h
schultezub's avatar
schultezub committed
37
38
#)

schultezub's avatar
schultezub committed
39
40
41
#
# Qt related stuff:
#
schultezub's avatar
schultezub committed
42
43
# TODO: remove Qt stuff here!
FIND_PACKAGE(Qt4 ${CampvisRequiredQtVersion} REQUIRED QtCore QtGui QtOpenGL)
schultezub's avatar
schultezub committed
44
INCLUDE(${QT_USE_FILE})
schultezub's avatar
   
schultezub committed
45
46


schultezub's avatar
schultezub committed
47
ADD_LIBRARY(campvis-core 
schultezub's avatar
schultezub committed
48
    ${CampvisCoreSources} ${CampvisCoreHeaders} 
schultezub's avatar
   
schultezub committed
49
)
schultezub's avatar
schultezub committed
50
51
52
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs})
TARGET_LINK_LIBRARIES(campvis-core tgt ${CampvisGlobalExternalLibs} ${QT_LIBRARIES})