2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

CMakeLists.txt 1.79 KB
Newer Older
schultezub's avatar
schultezub committed
1
PROJECT(campvis-application)
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 Application")
schultezub's avatar
   
schultezub committed
6

schultezub's avatar
schultezub committed
7
FILE(GLOB CAMPVIS_APPLICATION_SOURCES
schultezub's avatar
   
schultezub committed
8
    *.cpp
9
    gui/*.cpp
schultezub's avatar
schultezub committed
10
    gui/properties/*.cpp
11
    tools/*.cpp
schultezub's avatar
   
schultezub committed
12
13
)

schultezub's avatar
schultezub committed
14
FILE(GLOB CAMPVIS_APPLICATION_HEADERS
schultezub's avatar
   
schultezub committed
15
    *.h
16
    gui/*.h
schultezub's avatar
schultezub committed
17
    gui/properties/*.h
18
    tools/*.h
schultezub's avatar
   
schultezub committed
19
20
)

schultezub's avatar
schultezub committed
21
SET(CAMPVIS_APPLICATION_TO_BE_MOCCED
22
    gui/mainwindow.h
23
    gui/datacontainerinspectorcanvas.h
24
25
    gui/datacontainerinspectorwidget.h
    gui/datacontainertreewidget.h
26
    gui/pipelinetreewidget.h
schultezub's avatar
schultezub committed
27
    gui/qtcolortools.h
28
    gui/qtdatahandle.h
schultezub's avatar
schultezub committed
29
    gui/properties/abstractpropertywidget.h
schultezub's avatar
schultezub committed
30
    gui/properties/abstracttransferfunctioneditor.h
schultezub's avatar
schultezub committed
31
    gui/properties/boolpropertywidget.h
schultezub's avatar
schultezub committed
32
    gui/properties/intpropertywidget.h
schultezub's avatar
schultezub committed
33
    gui/properties/floatpropertywidget.h
schultezub's avatar
schultezub committed
34
    gui/properties/geometry1dtransferfunctioneditor.h
35
    gui/properties/geometry2dtransferfunctioneditor.h
schultezub's avatar
schultezub committed
36
    gui/properties/propertycollectionwidget.h
schultezub's avatar
schultezub committed
37
    gui/properties/simpletransferfunctioneditor.h
schultezub's avatar
schultezub committed
38
    gui/properties/stringpropertywidget.h
39
    gui/properties/transferfunctionpropertywidget.h
40
)
schultezub's avatar
   
schultezub committed
41
42
43
44

#
# Qt related stuff:
#
schultezub's avatar
schultezub committed
45
46
47
FIND_PACKAGE(Qt4 ${CAMPVIS_REQUIRED_QT_VERSION} REQUIRED QtCore QtGui QtOpenGL)
QT4_WRAP_CPP(CAMPVIS_APPLICATION_MOC ${CAMPVIS_APPLICATION_TO_BE_MOCCED})
LIST(APPEND CAMPVIS_APPLICATION_SOURCES ${CAMPVIS_APPLICATION_MOC})
48

schultezub's avatar
   
schultezub committed
49
INCLUDE(${QT_USE_FILE})
schultezub's avatar
schultezub committed
50
51
52
ADD_EXECUTABLE(campvis-application 
    ${CAMPVIS_APPLICATION_SOURCES} ${CAMPVIS_APPLICATION_HEADERS} 
    ${CAMPVIS_APPLICATION_MOC}
schultezub's avatar
   
schultezub committed
53
) 
schultezub's avatar
schultezub committed
54
55
ADD_DEFINITIONS(${CAMPVIS_DEFINITIONS} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${CAMPVIS_INCLUDE_DIRECTORIES})
schultezub's avatar
schultezub committed
56
TARGET_LINK_LIBRARIES(campvis-application campvis-core campvis-modules tgt ${CAMPVIS_EXTERNAL_LIBRARIES} ${QT_LIBRARIES})