CMakeLists.txt 1.36 KB
Newer Older
schultezub's avatar
 
schultezub committed
1
2
3
4
5
6
7
8
PROJECT(tumvis-application)
CMAKE_MINIMUM_REQUIRED(VERSION 2.8.0 FATAL_ERROR)
INCLUDE(../cmake/commonconf.cmake)

MESSAGE(STATUS "Configuring TUMVis Application")

FILE(GLOB TUMVIS_APPLICATION_SOURCES
    *.cpp
9
    gui/*.cpp
schultezub's avatar
schultezub committed
10
    gui/properties/*.cpp
schultezub's avatar
 
schultezub committed
11
12
13
14
)

FILE(GLOB TUMVIS_APPLICATION_HEADERS
    *.h
15
    gui/*.h
schultezub's avatar
schultezub committed
16
    gui/properties/*.h
schultezub's avatar
 
schultezub committed
17
18
19
20
21
22
23
24
)

#SET(TUMVIS_APPLICATION_SOURCES
#    application/tumvis.cpp
#    application/tumvispainter.cpp
#    datastructures/
#)

25
SET(TUMVIS_APPLICATION_TO_BE_MOCCED
26
27
    gui/mainwindow.h
    gui/pipelinetreewidget.h
schultezub's avatar
schultezub committed
28
29
30
31
    gui/properties/abstractpropertywidget.h
    gui/properties/propertycollectionwidget.h
    gui/properties/propertywidgetfactory.h
    gui/properties/stringpropertywidget.h
32
)
schultezub's avatar
 
schultezub committed
33
34
35
36
37

#
# Qt related stuff:
#
FIND_PACKAGE(Qt4 ${TUMVIS_REQUIRED_QT_VERSION} REQUIRED QtCore QtGui QtOpenGL)
38
39
40
QT4_WRAP_CPP(TUMVIS_APPLICATION_MOC ${TUMVIS_APPLICATION_TO_BE_MOCCED})
LIST(APPEND TUMVIS_APPLICATION_SOURCES ${TUMVIS_APPLICATION_MOC})

schultezub's avatar
 
schultezub committed
41
42
43
INCLUDE(${QT_USE_FILE})
ADD_EXECUTABLE(tumvis-application 
    ${TUMVIS_APPLICATION_SOURCES} ${TUMVIS_APPLICATION_HEADERS} 
44
    ${TUMVIS_APPLICATION_MOC}
schultezub's avatar
 
schultezub committed
45
46
47
) 
ADD_DEFINITIONS(${TUMVIS_DEFINITIONS} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${TUMVIS_INCLUDE_DIRECTORIES})
schultezub's avatar
schultezub committed
48
TARGET_LINK_LIBRARIES(tumvis-application tumvis-core tumvis-modules tgt ${TUMVIS_EXTERNAL_LIBRARIES} ${QT_LIBRARIES})