2 cmake_minimum_required(VERSION 2.8.9)
4 include("${SRC_DIR}/build_options.cmake")
6 if (NOT DEFINED ENV{QTDIR})
7 set(ENV{QTDIR} /usr/local/Trolltech/Qt-4.8.5)
9 find_package(Qt4 REQUIRED)
11 find_package(Threads REQUIRED)
12 find_package(X11 REQUIRED)
18 ${CMAKE_BINARY_DIR}/voglinc
19 ${SRC_DIR}/extlib/loki/include/loki
20 ${SRC_DIR}/libtelemetry
21 ${CMAKE_CURRENT_BINARY_DIR}
23 ${QT_QTCORE_INCLUDE_DIR}
24 ${QT_QTGUI_INCLUDE_DIR}
27 #include(${QT_USE_FILE})
29 ## uncomment these to enable additional Qt modules
30 # set(QT_USE_QTNETWORK true)
31 # set(QT_USE_QTOPENGL true)
32 # set(QT_USE_QTSQL true)
33 # set(QT_USE_QTXML true)
34 # set(QT_USE_QTSVG true)
35 # set(QT_USE_QTTEST true)
36 # set(QT_USE_QTDBUS true)
37 # set(QT_USE_QTSCRIPT true)
38 # set(QT_USE_QTWEBKIT true)
39 # set(QT_USE_QTXMLPATTERNS true)
40 # set(QT_USE_PHONON true)
45 vogleditor_apicalltreeitem.cpp
46 vogleditor_apicalltimelinemodel.cpp
47 vogleditor_gl_state_snapshot.cpp
48 vogleditor_qapicalltreemodel.cpp
49 vogleditor_qframebufferexplorer.cpp
50 vogleditor_qprogramexplorer.cpp
51 vogleditor_qshaderexplorer.cpp
52 vogleditor_qstatetreemodel.cpp
53 vogleditor_qtextureexplorer.cpp
54 vogleditor_qtextureviewer.cpp
55 vogleditor_qtimelineview.cpp
56 vogleditor_qtrimdialog.cpp
58 vogleditor_settings.cpp
59 vogleditor_statetreearbprogramitem.cpp
60 vogleditor_statetreearbprogramenvitem.cpp
61 vogleditor_statetreebufferitem.cpp
62 vogleditor_statetreecontextgeneralitem.cpp
63 vogleditor_statetreecontextinfoitem.cpp
64 vogleditor_statetreecontextitem.cpp
65 vogleditor_statetreedisplaylistitem.cpp
66 vogleditor_statetreeframebufferitem.cpp
67 vogleditor_statetreeitem.cpp
68 vogleditor_statetreelightitem.cpp
69 vogleditor_statetreematrixitem.cpp
70 vogleditor_statetreepolygonstippleitem.cpp
71 vogleditor_statetreeprogramitem.cpp
72 vogleditor_statetreequeryitem.cpp
73 vogleditor_statetreerenderbufferitem.cpp
74 vogleditor_statetreesampleritem.cpp
75 vogleditor_statetreeshaderitem.cpp
76 vogleditor_statetreesyncitem.cpp
77 vogleditor_statetreetexenvitem.cpp
78 vogleditor_statetreetextureitem.cpp
79 vogleditor_statetreevertexarrayitem.cpp
80 vogleditor_timelineitem.cpp
81 vogleditor_timelinemodel.cpp
82 vogleditor_tracereplayer.cpp
85 # This should only contain headers that define a QOBJECT
86 # Typically that means just headers for UI objects
89 vogleditor_qapicalltreemodel.h
90 vogleditor_qframebufferexplorer.h
91 vogleditor_qprogramexplorer.h
92 vogleditor_qshaderexplorer.h
93 vogleditor_qstatetreemodel.h
94 vogleditor_qtextureviewer.h
95 vogleditor_qtextureexplorer.h
96 vogleditor_qtimelineview.h
97 vogleditor_qtrimdialog.h
100 # these are for non-QOBJECT headers
103 vogleditor_apicallitem.h
104 vogleditor_apicalltimelinemodel.h
105 vogleditor_apicalltreeitem.h
106 vogleditor_frameitem.h
107 vogleditor_gl_state_snapshot.h
109 vogleditor_settings.h
110 vogleditor_snapshotitem.h
111 vogleditor_statetreearbprogramitem.h
112 vogleditor_statetreearbprogramenvitem.h
113 vogleditor_statetreebufferitem.h
114 vogleditor_statetreecontextgeneralitem.h
115 vogleditor_statetreecontextinfoitem.h
116 vogleditor_statetreecontextitem.h
117 vogleditor_statetreedisplaylistitem.h
118 vogleditor_statetreeitem.h
119 vogleditor_statetreelightitem.h
120 vogleditor_statetreematrixitem.h
121 vogleditor_statetreepolygonstippleitem.h
122 vogleditor_statetreeprogramitem.h
123 vogleditor_statetreequeryitem.h
124 vogleditor_statetreerenderbufferitem.h
125 vogleditor_statetreesampleritem.h
126 vogleditor_statetreeshaderitem.h
127 vogleditor_statetreesyncitem.h
128 vogleditor_statetreetexenvitem.h
129 vogleditor_statetreetextureitem.h
130 vogleditor_statetreevertexarrayitem.h
131 vogleditor_statetreeframebufferitem.h
132 vogleditor_timelineitem.h
133 vogleditor_timelinemodel.h
134 vogleditor_tracereplayer.h
139 vogleditor_qframebufferexplorer.ui
140 vogleditor_qprogramexplorer.ui
141 vogleditor_qshaderexplorer.ui
142 vogleditor_qtextureexplorer.ui
143 vogleditor_qtrimdialog.ui
149 QT4_WRAP_CPP(QT_GEN_HEADER_MOC_LIST ${UI_HEADER_LIST})
150 QT4_WRAP_UI(QT_GEN_FORM_HEADER_LIST ${FORM_LIST})
151 QT4_ADD_RESOURCES(QT_GEN_RESOURCE_RCC_LIST ${RESOURCE_LIST})
153 #add_definitions(${QT_DEFINITIONS})
155 add_executable(${PROJECT_NAME} ${SRC_LIST} ${HEADER_LIST}
156 ${QT_GEN_HEADER_MOC_LIST}
157 ${QT_GEN_FORM_HEADER_LIST}
158 ${QT_GEN_RESOURCE_RCC_LIST}
161 add_dependencies(${PROJECT_NAME} voglgen_make_inc)
163 target_link_libraries(${PROJECT_NAME}
175 build_options_finalize()