CMakeLists.txt 3.4 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 CampvisApplicationSources
schultezub's avatar
 
schultezub committed
8
    *.cpp
9
    gui/*.cpp
10
    gui/adjusterwidgets/*.cpp
11
12
    gui/mdi/*.cpp
    gui/properties/*.cpp
13
    tools/*.cpp
schultezub's avatar
 
schultezub committed
14
15
)

schultezub's avatar
schultezub committed
16
FILE(GLOB CampvisApplicationHeaders
schultezub's avatar
 
schultezub committed
17
    *.h
18
19
    glsl/*.frag
    glsl/*.vert
20
    gui/*.h
schultezub's avatar
schultezub committed
21
    gui/properties/*.h
22
    gui/adjusterwidgets/*.h
23
    tools/*.h
schultezub's avatar
 
schultezub committed
24
25
)

26
27
28
29
FILE(GLOB CampvisApplicationForms
    ui/*.ui
)

schultezub's avatar
schultezub committed
30
SET(CampvisApplicationToBeMocced
31
    gui/mainwindow.h
32
    gui/datacontainerinspectorcanvas.h
33
    gui/datacontainerinspectorwidget.h
34
    gui/datacontainerfileloaderwidget.h
35
    gui/datacontainertreewidget.h
36
    gui/pipelinetreewidget.h
schultezub's avatar
schultezub committed
37
    gui/qtcolortools.h
38
    gui/qtdatahandle.h
39
    gui/logviewerwidget.h
40
    gui/loghighlighter.h
41
    gui/mdi/mdidockarea.h
42
    gui/mdi/mdidockablewindow.h
43
    gui/mdi/mdidockedwindow.h
44
    gui/mdi/mdifloatingwindow.h
45
    gui/adjusterwidgets/doubleadjusterwidget.h
46
    gui/adjusterwidgets/intadjusterwidget.h
schultezub's avatar
schultezub committed
47
    gui/properties/abstractpropertywidget.h
schultezub's avatar
schultezub committed
48
    gui/properties/abstracttransferfunctioneditor.h
schultezub's avatar
schultezub committed
49
    gui/properties/boolpropertywidget.h
schultezub's avatar
schultezub committed
50
    gui/properties/buttonpropertywidget.h
schultezub's avatar
schultezub committed
51
    gui/properties/camerapropertywidget.h
52
    gui/properties/datanamepropertywidget.h
schultezub's avatar
schultezub committed
53
    gui/properties/intpropertywidget.h
schultezub's avatar
schultezub committed
54
    gui/properties/floatpropertywidget.h
schultezub's avatar
schultezub committed
55
    gui/properties/geometry1dtransferfunctioneditor.h
56
    gui/properties/geometry2dtransferfunctioneditor.h
57
    gui/properties/metapropertywidget.h
58
    gui/properties/optionpropertywidget.h
schultezub's avatar
schultezub committed
59
    gui/properties/propertycollectionwidget.h
schultezub's avatar
schultezub committed
60
    gui/properties/simpletransferfunctioneditor.h
schultezub's avatar
schultezub committed
61
    gui/properties/stringpropertywidget.h
62
    gui/properties/transferfunctionpropertywidget.h
63
    tools/qtexteditlog.h
64
    tools/bufferinglog.h
65
)
schultezub's avatar
 
schultezub committed
66
67
68
69

#
# Qt related stuff:
#
schultezub's avatar
schultezub committed
70
71
QT4_WRAP_CPP(CampvisApplicationMoc ${CampvisApplicationToBeMocced})
LIST(APPEND CampvisApplicationSources ${CampvisApplicationMoc})
72

73
74
QT4_WRAP_UI(CampvisApplicationFormsHeaders ${CampvisApplicationForms})
LIST(APPEND CampvisApplicationSources ${CampvisApplicationFormsHeaders})
75

76
LINK_DIRECTORIES(${CampvisGlobalLinkDirectories} ${CampvisModulesLinkDirectories})
77

78
79
ADD_EXECUTABLE(campvis-application
    ${CampvisApplicationSources} ${CampvisApplicationHeaders}
schultezub's avatar
schultezub committed
80
    ${CampvisApplicationMoc}
81
)
82
ADD_DEFINITIONS(${CampvisGlobalDefinitions} ${CampvisModulesDefinitions} ${CampvisApplicationDefinitions} ${QT_DEFINITIONS})
83
84
INCLUDE_DIRECTORIES(${CampvisGlobalIncludeDirs} ${CampvisModulesIncludeDirs})
TARGET_LINK_LIBRARIES(campvis-application campvis-core campvis-modules tgt ${CampvisGlobalExternalLibs} ${CampvisModulesExternalLibs} ${QT_LIBRARIES})
85

86
87
88
89
90
91
92

IF(CAMPVIS_GROUP_SOURCE_FILES)
    DEFINE_SOURCE_GROUPS_FROM_SUBDIR(CampvisApplicationSources ${CampvisHome} "")
    DEFINE_SOURCE_GROUPS_FROM_SUBDIR(CampvisApplicationHeaders ${CampvisHome} "")
ENDIF()


93
94
95
96
97
98
99
100
101
102
103
IF(CAMPVIS_DEPLOY_SHADERS)
    LIST(APPEND CampvisShaderDirectories "application/glsl")
    LIST(APPEND CampvisShaderDirectories "core/glsl")

    FOREACH(Directory ${CampvisShaderDirectories})
        ADD_CUSTOM_COMMAND(
            TARGET campvis-application
            COMMAND ${CMAKE_COMMAND} -E copy_directory "${CampvisHome}/${Directory}" "$<TARGET_FILE_DIR:campvis-application>/${Directory}"
        )
    ENDFOREACH()
ENDIF(CAMPVIS_DEPLOY_SHADERS)