CMakeLists.txt 1.17 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
11
12
13
)

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

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

23
SET(TUMVIS_APPLICATION_TO_BE_MOCCED
24
25
    gui/mainwindow.h
    gui/pipelinetreewidget.h
26
    gui/propertycollectionwidget.h
27
)
schultezub's avatar
 
schultezub committed
28
29
30
31
32

#
# Qt related stuff:
#
FIND_PACKAGE(Qt4 ${TUMVIS_REQUIRED_QT_VERSION} REQUIRED QtCore QtGui QtOpenGL)
33
34
35
QT4_WRAP_CPP(TUMVIS_APPLICATION_MOC ${TUMVIS_APPLICATION_TO_BE_MOCCED})
LIST(APPEND TUMVIS_APPLICATION_SOURCES ${TUMVIS_APPLICATION_MOC})

schultezub's avatar
 
schultezub committed
36
37
38
INCLUDE(${QT_USE_FILE})
ADD_EXECUTABLE(tumvis-application 
    ${TUMVIS_APPLICATION_SOURCES} ${TUMVIS_APPLICATION_HEADERS} 
39
    ${TUMVIS_APPLICATION_MOC}
schultezub's avatar
 
schultezub committed
40
41
42
) 
ADD_DEFINITIONS(${TUMVIS_DEFINITIONS} ${QT_DEFINITIONS})
INCLUDE_DIRECTORIES(${TUMVIS_INCLUDE_DIRECTORIES})
schultezub's avatar
schultezub committed
43
TARGET_LINK_LIBRARIES(tumvis-application tumvis-core tumvis-modules tgt ${TUMVIS_EXTERNAL_LIBRARIES} ${QT_LIBRARIES})