X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=src%2Fvogleditor%2FCMakeLists.txt;h=3132f70802318a7fc06560f2ee22163a1d8cf82f;hb=da9408c5d28098035931c0261c1b64d60fbcf414;hp=e63fd93b886bcd2162023d60781572dd76b92fe2;hpb=9efcfb2c254b732a4d9494c08ad6641cebb7ce79;p=vogl diff --git a/src/vogleditor/CMakeLists.txt b/src/vogleditor/CMakeLists.txt index e63fd93..3132f70 100644 --- a/src/vogleditor/CMakeLists.txt +++ b/src/vogleditor/CMakeLists.txt @@ -2,7 +2,12 @@ project(vogleditor) cmake_minimum_required(VERSION 2.8.9) include("${SRC_DIR}/build_options.cmake") + +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) @@ -10,7 +15,7 @@ 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} @@ -48,6 +53,7 @@ set(SRC_LIST vogleditor_qtextureexplorer.cpp vogleditor_qtextureviewer.cpp vogleditor_qtimelineview.cpp + vogleditor_qtrimdialog.cpp vogleditor_statetreearbprogramitem.cpp vogleditor_statetreearbprogramenvitem.cpp vogleditor_statetreebufferitem.cpp @@ -86,6 +92,7 @@ set(UI_HEADER_LIST vogleditor_qtextureviewer.h vogleditor_qtextureexplorer.h vogleditor_qtimelineview.h + vogleditor_qtrimdialog.h ) # these are for non-QOBJECT headers @@ -129,6 +136,7 @@ set(FORM_LIST vogleditor_qprogramexplorer.ui vogleditor_qshaderexplorer.ui vogleditor_qtextureexplorer.ui + vogleditor_qtrimdialog.ui ) set(RESOURCE_LIST @@ -146,17 +154,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} - ${CMAKE_THREAD_LIBS_INIT} ${X11_X11_LIB} backtrace voglcommon - voglcore - dl + voglcore + ${CMAKE_DL_LIBS} ) build_options_finalize()