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

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

modif case

File size: 1.1 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)
17INCLUDE(${QT_USE_FILE})
18
19QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC})
20
21ADD_DEFINITIONS(${QT_DEFINITIONS})
22
23include_directories(
24        ${CMAKE_SOURCE_DIR}/src
25        ../FlairGCS/src/
26        ${QT_INCLUDE_DIR}
27)
28
29LINK_DIRECTORIES (
30        ${QT_LIBRARY_DIR}
31)
32
33ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
34TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} FileLib)
35
36INSTALL(
37        TARGETS ${PROJECT_NAME}
38        RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
39)
40
41add_custom_target(
42        svn_rev
43        COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/svn_revision.sh $ENV{FLAIR_ROOT}/flair-src ${CMAKE_CURRENT_SOURCE_DIR}/src/svnversion.h
44)
45
46add_dependencies(${PROJECT_NAME} svn_rev)
47
48
49SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
Note: See TracBrowser for help on using the repository browser.