source: flair-src/trunk/tools/Dbt2csv/CMakeLists.txt @ 12

Last change on this file since 12 was 12, checked in by Sanahuja Guillaume, 5 years ago

dbt2csv

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