PROJECT(Dbt2csv) cmake_minimum_required(VERSION 2.8) include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake) SET(PROJECT_SOURCE_FILES src/main.cpp ../FlairGCS/src/file_ui.cpp ) SET(FILES_TO_MOC ../FlairGCS/src/file_ui.h ) FIND_PACKAGE(Qt4 REQUIRED) SET(QT_USE_QTGUI TRUE) SET(QT_USE_QTMAIN TRUE) #SET(QT_USE_QTXML TRUE) #SET(QT_USE_QTNETWORK TRUE) INCLUDE(${QT_USE_FILE}) QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC}) ADD_DEFINITIONS(${QT_DEFINITIONS}) include_directories( ${CMAKE_SOURCE_DIR}/src ../FlairGCS/src/ # $ENV{IGEP_ROOT}/uav_dev/include/ ${QT_INCLUDE_DIR} ) LINK_DIRECTORIES ( ${QT_LIBRARY_DIR} # $ENV{IGEP_ROOT}/uav_dev/lib/${ARCH_DIR} ) ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES}) TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} FileLib) INSTALL( TARGETS ${PROJECT_NAME} RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR} ) add_custom_target( svn_rev COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h ) add_dependencies(${PROJECT_NAME} svn_rev) SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)