X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvogleditor%2FCMakeLists.txt;h=597567a16463b7fab302066038fce1beba4e070e;hb=dfeddddb1c5b2e4973bc9160dd6f8f8657b76b8b;hp=bf2c3c66e3c0f2539db3c1cba96bc7c266d345d5;hpb=e42a20819001567e874756e05ef9883f78ee8789;p=vogl diff --git a/src/vogleditor/CMakeLists.txt b/src/vogleditor/CMakeLists.txt index bf2c3c6..597567a 100644 --- a/src/vogleditor/CMakeLists.txt +++ b/src/vogleditor/CMakeLists.txt @@ -2,14 +2,20 @@ project(vogleditor) cmake_minimum_required(VERSION 2.8.9) include("${SRC_DIR}/build_options.cmake") -set (QT_QMAKE_EXECUTABLE "/usr/local/Trolltech/Qt-4.8.5/bin/qmake") + +if (NOT DEFINED ENV{QTDIR}) +set(ENV{QTDIR} /usr/local/Trolltech/Qt-4.8.5) +endif() find_package(Qt4 REQUIRED) +find_package(Threads REQUIRED) +find_package(X11 REQUIRED) + include_directories( ${SRC_DIR} ${SRC_DIR}/voglcore ${SRC_DIR}/voglcommon - ${SRC_DIR}/voglinc + ${CMAKE_BINARY_DIR}/voglinc ${SRC_DIR}/extlib/loki/include/loki ${SRC_DIR}/libtelemetry ${CMAKE_CURRENT_BINARY_DIR} @@ -47,6 +53,9 @@ set(SRC_LIST vogleditor_qtextureexplorer.cpp vogleditor_qtextureviewer.cpp vogleditor_qtimelineview.cpp + vogleditor_qtrimdialog.cpp + vogleditor_output.cpp + vogleditor_settings.cpp vogleditor_statetreearbprogramitem.cpp vogleditor_statetreearbprogramenvitem.cpp vogleditor_statetreebufferitem.cpp @@ -85,6 +94,7 @@ set(UI_HEADER_LIST vogleditor_qtextureviewer.h vogleditor_qtextureexplorer.h vogleditor_qtimelineview.h + vogleditor_qtrimdialog.h ) # these are for non-QOBJECT headers @@ -95,6 +105,8 @@ set(HEADER_LIST vogleditor_apicalltreeitem.h vogleditor_frameitem.h vogleditor_gl_state_snapshot.h + vogleditor_output.h + vogleditor_settings.h vogleditor_snapshotitem.h vogleditor_statetreearbprogramitem.h vogleditor_statetreearbprogramenvitem.h @@ -128,6 +140,7 @@ set(FORM_LIST vogleditor_qprogramexplorer.ui vogleditor_qshaderexplorer.ui vogleditor_qtextureexplorer.ui + vogleditor_qtrimdialog.ui ) set(RESOURCE_LIST @@ -145,16 +158,18 @@ add_executable(${PROJECT_NAME} ${SRC_LIST} ${HEADER_LIST} ${QT_GEN_RESOURCE_RCC_LIST} ) +add_dependencies(${PROJECT_NAME} voglgen_make_inc) + target_link_libraries(${PROJECT_NAME} ${QT_QTMAIN_LIBRARY} ${QT_QTCORE_LIBRARY} ${QT_QTGUI_LIBRARY} ${TELEMETRY_LIBRARY} + ${X11_X11_LIB} backtrace voglcommon voglcore - X11 - dl + ${CMAKE_DL_LIBS} ) build_options_finalize()