Rev | Line | |
---|
[12] | 1 | PROJECT(Dbt2csv)
|
---|
| 2 | cmake_minimum_required(VERSION 2.8)
|
---|
| 3 | include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
|
---|
| 4 |
|
---|
| 5 | SET(PROJECT_SOURCE_FILES
|
---|
| 6 | src/main.cpp
|
---|
| 7 | ../FlairGCS/src/file_ui.cpp
|
---|
| 8 | )
|
---|
| 9 |
|
---|
| 10 | SET(FILES_TO_MOC
|
---|
| 11 | ../FlairGCS/src/file_ui.h
|
---|
| 12 | )
|
---|
| 13 |
|
---|
| 14 | FIND_PACKAGE(Qt4 REQUIRED)
|
---|
| 15 | SET(QT_USE_QTGUI TRUE)
|
---|
| 16 | SET(QT_USE_QTMAIN TRUE)
|
---|
| 17 | #SET(QT_USE_QTXML TRUE)
|
---|
| 18 | #SET(QT_USE_QTNETWORK TRUE)
|
---|
| 19 | INCLUDE(${QT_USE_FILE})
|
---|
| 20 |
|
---|
| 21 | QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC})
|
---|
| 22 |
|
---|
| 23 | ADD_DEFINITIONS(${QT_DEFINITIONS})
|
---|
| 24 |
|
---|
| 25 | include_directories(
|
---|
| 26 | ${CMAKE_SOURCE_DIR}/src
|
---|
| 27 | ../FlairGCS/src/
|
---|
| 28 | # $ENV{IGEP_ROOT}/uav_dev/include/
|
---|
| 29 | ${QT_INCLUDE_DIR}
|
---|
| 30 | )
|
---|
| 31 |
|
---|
| 32 | LINK_DIRECTORIES (
|
---|
| 33 | ${QT_LIBRARY_DIR}
|
---|
| 34 | # $ENV{IGEP_ROOT}/uav_dev/lib/${ARCH_DIR}
|
---|
| 35 | )
|
---|
| 36 |
|
---|
| 37 | ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
|
---|
| 38 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} FileLib)
|
---|
| 39 |
|
---|
| 40 | INSTALL(
|
---|
| 41 | TARGETS ${PROJECT_NAME}
|
---|
| 42 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
|
---|
| 43 | )
|
---|
| 44 |
|
---|
| 45 | add_custom_target(
|
---|
| 46 | svn_rev
|
---|
| 47 | COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h
|
---|
| 48 | )
|
---|
| 49 |
|
---|
| 50 | add_dependencies(${PROJECT_NAME} svn_rev)
|
---|
| 51 |
|
---|
| 52 |
|
---|
| 53 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.