CMakeLists.txt 1.08 KB
Newer Older
schultezub's avatar
 
schultezub committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
)

FILE(GLOB TUMVIS_APPLICATION_HEADERS
    *.h
)

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

21
22
23
SET(TUMVIS_APPLICATION_TO_BE_MOCCED
    tumvisapplication.h
)
schultezub's avatar
 
schultezub committed
24
25
26
27
28

#
# Qt related stuff:
#
FIND_PACKAGE(Qt4 ${TUMVIS_REQUIRED_QT_VERSION} REQUIRED QtCore QtGui QtOpenGL)
29
30
31
QT4_WRAP_CPP(TUMVIS_APPLICATION_MOC ${TUMVIS_APPLICATION_TO_BE_MOCCED})
LIST(APPEND TUMVIS_APPLICATION_SOURCES ${TUMVIS_APPLICATION_MOC})

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