]> git.cworth.org Git - vogl/blob - src/vogleditor/CMakeLists.txt
Fix some missing libraries.
[vogl] / src / vogleditor / CMakeLists.txt
1 project(vogleditor)
2 cmake_minimum_required(VERSION 2.8.9)
3
4 include("${SRC_DIR}/build_options.cmake")
5 find_package(Qt4 REQUIRED)
6 find_package(Threads REQUIRED)
7 find_package(X11 REQUIRED)
8
9 include_directories(
10     ${SRC_DIR}
11     ${SRC_DIR}/voglcore
12     ${SRC_DIR}/voglcommon
13     ${SRC_DIR}/voglinc
14     ${SRC_DIR}/extlib/loki/include/loki
15     ${SRC_DIR}/libtelemetry
16     ${CMAKE_CURRENT_BINARY_DIR}
17     ${QT_INCLUDE_DIR}
18     ${QT_QTCORE_INCLUDE_DIR}
19     ${QT_QTGUI_INCLUDE_DIR}
20 )
21
22 #include(${QT_USE_FILE})
23
24 ## uncomment these to enable additional Qt modules
25 # set(QT_USE_QTNETWORK true)
26 # set(QT_USE_QTOPENGL true)
27 # set(QT_USE_QTSQL true)
28 # set(QT_USE_QTXML true)
29 # set(QT_USE_QTSVG true)
30 # set(QT_USE_QTTEST true)
31 # set(QT_USE_QTDBUS true)
32 # set(QT_USE_QTSCRIPT true)
33 # set(QT_USE_QTWEBKIT true)
34 # set(QT_USE_QTXMLPATTERNS true)
35 # set(QT_USE_PHONON true)
36
37 set(SRC_LIST
38     main.cpp
39     vogleditor.cpp
40     vogleditor_apicalltreeitem.cpp
41     vogleditor_apicalltimelinemodel.cpp
42     vogleditor_gl_state_snapshot.cpp
43     vogleditor_qapicalltreemodel.cpp
44     vogleditor_qframebufferexplorer.cpp
45     vogleditor_qprogramexplorer.cpp
46     vogleditor_qshaderexplorer.cpp
47     vogleditor_qstatetreemodel.cpp
48     vogleditor_qtextureexplorer.cpp
49     vogleditor_qtextureviewer.cpp
50     vogleditor_qtimelineview.cpp
51     vogleditor_statetreearbprogramitem.cpp
52     vogleditor_statetreearbprogramenvitem.cpp
53     vogleditor_statetreebufferitem.cpp
54     vogleditor_statetreecontextgeneralitem.cpp
55     vogleditor_statetreecontextinfoitem.cpp
56     vogleditor_statetreecontextitem.cpp
57     vogleditor_statetreedisplaylistitem.cpp
58     vogleditor_statetreeframebufferitem.cpp
59     vogleditor_statetreeitem.cpp
60     vogleditor_statetreelightitem.cpp
61     vogleditor_statetreematrixitem.cpp
62     vogleditor_statetreepolygonstippleitem.cpp
63     vogleditor_statetreeprogramitem.cpp
64     vogleditor_statetreequeryitem.cpp
65     vogleditor_statetreerenderbufferitem.cpp
66     vogleditor_statetreesampleritem.cpp
67     vogleditor_statetreeshaderitem.cpp
68     vogleditor_statetreesyncitem.cpp
69     vogleditor_statetreetexenvitem.cpp
70     vogleditor_statetreetextureitem.cpp
71     vogleditor_statetreevertexarrayitem.cpp
72     vogleditor_timelineitem.cpp
73     vogleditor_timelinemodel.cpp
74     vogleditor_tracereplayer.cpp
75    )
76
77 # This should only contain headers that define a QOBJECT
78 # Typically that means just headers for UI objects
79 set(UI_HEADER_LIST
80     vogleditor.h
81     vogleditor_qapicalltreemodel.h
82     vogleditor_qframebufferexplorer.h
83     vogleditor_qprogramexplorer.h
84     vogleditor_qshaderexplorer.h
85     vogleditor_qstatetreemodel.h
86     vogleditor_qtextureviewer.h
87     vogleditor_qtextureexplorer.h
88     vogleditor_qtimelineview.h
89    )
90
91 # these are for non-QOBJECT headers
92 set(HEADER_LIST
93     vogleditor.h
94     vogleditor_apicallitem.h
95     vogleditor_apicalltimelinemodel.h
96     vogleditor_apicalltreeitem.h
97     vogleditor_frameitem.h
98     vogleditor_gl_state_snapshot.h
99     vogleditor_snapshotitem.h
100     vogleditor_statetreearbprogramitem.h
101     vogleditor_statetreearbprogramenvitem.h
102     vogleditor_statetreebufferitem.h
103     vogleditor_statetreecontextgeneralitem.h
104     vogleditor_statetreecontextinfoitem.h
105     vogleditor_statetreecontextitem.h
106     vogleditor_statetreedisplaylistitem.h
107     vogleditor_statetreeitem.h
108     vogleditor_statetreelightitem.h
109     vogleditor_statetreematrixitem.h
110     vogleditor_statetreepolygonstippleitem.h
111     vogleditor_statetreeprogramitem.h
112     vogleditor_statetreequeryitem.h
113     vogleditor_statetreerenderbufferitem.h
114     vogleditor_statetreesampleritem.h
115     vogleditor_statetreeshaderitem.h
116     vogleditor_statetreesyncitem.h
117     vogleditor_statetreetexenvitem.h
118     vogleditor_statetreetextureitem.h
119     vogleditor_statetreevertexarrayitem.h
120     vogleditor_statetreeframebufferitem.h
121     vogleditor_timelineitem.h
122     vogleditor_timelinemodel.h
123     vogleditor_tracereplayer.h
124    )
125
126 set(FORM_LIST
127     vogleditor.ui
128     vogleditor_qframebufferexplorer.ui
129     vogleditor_qprogramexplorer.ui
130     vogleditor_qshaderexplorer.ui
131     vogleditor_qtextureexplorer.ui
132    )
133
134 set(RESOURCE_LIST
135    )
136
137 QT4_WRAP_CPP(QT_GEN_HEADER_MOC_LIST ${UI_HEADER_LIST})
138 QT4_WRAP_UI(QT_GEN_FORM_HEADER_LIST ${FORM_LIST})
139 QT4_ADD_RESOURCES(QT_GEN_RESOURCE_RCC_LIST ${RESOURCE_LIST})
140
141 #add_definitions(${QT_DEFINITIONS})
142
143 add_executable(${PROJECT_NAME} ${SRC_LIST} ${HEADER_LIST}
144         ${QT_GEN_HEADER_MOC_LIST}
145         ${QT_GEN_FORM_HEADER_LIST}
146         ${QT_GEN_RESOURCE_RCC_LIST}
147    )
148
149 target_link_libraries(${PROJECT_NAME}
150         ${QT_QTMAIN_LIBRARY} 
151         ${QT_QTCORE_LIBRARY} 
152         ${QT_QTGUI_LIBRARY} 
153         ${TELEMETRY_LIBRARY}
154         ${CMAKE_THREAD_LIBS_INIT}
155         ${X11_X11_LIB}
156         backtrace
157         voglcommon
158         voglcore
159         dl
160    )
161
162 build_options_finalize()