The expiration time for new job artifacts in CI/CD pipelines is now 30 days (GitLab default). Previously generated artifacts in already completed jobs will not be affected by the change. The latest artifacts for all jobs in the latest successful pipelines will be kept. More information: https://gitlab.lrz.de/help/user/admin_area/settings/continuous_integration.html#default-artifacts-expiration

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

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

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

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

63
64
LIST(APPEND CampvisApplicationDefinitions "-DCAMPVIS_SOURCE_DIR=\"${CampvisHome}\"")

schultezub's avatar
   
schultezub committed
65
66
67
#
# Qt related stuff:
#
schultezub's avatar
schultezub committed
68
69
70
FIND_PACKAGE(Qt4 ${CampvisRequiredQtVersion} REQUIRED QtCore QtGui QtOpenGL)
QT4_WRAP_CPP(CampvisApplicationMoc ${CampvisApplicationToBeMocced})
LIST(APPEND CampvisApplicationSources ${CampvisApplicationMoc})
71
72
QT4_WRAP_UI(CampvisApplicationFormsHeaders ${CampvisApplicationForms})
LIST(APPEND CampvisApplicationSources ${CampvisApplicationFormsHeaders})
schultezub's avatar
   
schultezub committed
73
INCLUDE(${QT_USE_FILE})
74

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

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

85
86
87
88
89
90
91

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


92
93
94
95
96
97
98
99
100
101
102
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)