]> git.cworth.org Git - apitrace/blob - gui/CMakeLists.txt
Merge branch 'master' into dxva
[apitrace] / gui / CMakeLists.txt
1 # Include the cmake file needed to use qt4
2 include( ${QT_USE_FILE} )
3
4 set(qapitrace_SRCS
5    apisurface.cpp
6    apitrace.cpp
7    apicalldelegate.cpp
8    apitracecall.cpp
9    apitracefilter.cpp
10    apitracemodel.cpp
11    argumentseditor.cpp
12    glsledit.cpp
13    imageviewer.cpp
14    jumpwidget.cpp
15    mainwindow.cpp
16    main.cpp
17    profiledialog.cpp
18    profiletablemodel.cpp
19    retracer.cpp
20    saverthread.cpp
21    searchwidget.cpp
22    settingsdialog.cpp
23    shaderssourcewidget.cpp
24    tracedialog.cpp
25    traceloader.cpp
26    traceprocess.cpp
27    trimprocess.cpp
28    vertexdatainterpreter.cpp
29    graphing/frameaxiswidget.cpp
30    graphing/graphwidget.cpp
31    graphing/graphaxiswidget.cpp
32    graphing/graphview.cpp
33    graphing/heatmapview.cpp
34    graphing/heatmapverticalaxiswidget.cpp
35    graphing/histogramview.cpp
36    graphing/timeaxiswidget.cpp
37  )
38
39 qt4_automoc(${qapitrace_SRCS})
40
41 qt4_add_resources(qapitrace_SRCS qapitrace.qrc)
42
43 set(qapitrace_UIS
44    ui/argumentseditor.ui
45    ui/imageviewer.ui
46    ui/jumpwidget.ui
47    ui/mainwindow.ui
48    ui/profiledialog.ui
49    ui/profilereplaydialog.ui
50    ui/retracerdialog.ui
51    ui/settings.ui
52    ui/tracedialog.ui
53    ui/searchwidget.ui
54    ui/shaderssourcewidget.ui
55    )
56
57 QT4_WRAP_UI(qapitrace_UIS_H ${qapitrace_UIS})
58
59 #add_app_icon(qapitrace_SRCS ../icons/hi*-qapitrace.png)
60 link_directories(${LINK_DIRECTORIES} ${QJSON_LIBRARY_DIRS})
61 include_directories(${QT_INCLUDES} ${QJSON_INCLUDE_DIR} ${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/..)
62
63 add_executable(qapitrace ${qapitrace_SRCS} ${qapitrace_UIS_H})
64
65 target_link_libraries (qapitrace
66     common
67     ${PNG_LIBRARIES}
68     ${ZLIB_LIBRARIES}
69     ${SNAPPY_LIBRARIES}
70     ${QJSON_LIBRARIES}
71     ${QT_LIBRARIES}
72 )
73
74 # Recent builds of Qt no longer support i386 architecture
75 if (APPLE)
76     set_target_properties (qapitrace PROPERTIES OSX_ARCHITECTURES x86_64)
77 endif ()
78
79 ########### install files ###############
80
81 install (TARGETS qapitrace RUNTIME DESTINATION bin)
82 #install (FILES qapitrace.desktop DESTINATION ${XDG_APPS_INSTALL_DIR})