source: flair-src/tags/0.0.2/tools/Dbt2csv/CMakeLists.txt@ 377

Last change on this file since 377 was 107, checked in by Sanahuja Guillaume, 8 years ago

m

File size: 1.4 KB
Line 
1PROJECT(dbt2csv)
2cmake_minimum_required(VERSION 2.8)
3include($ENV{FLAIR_ROOT}/flair-dev/cmake-modules/GlobalCmakeFlair.cmake)
4
5if("${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i686" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "i586" OR "${CMAKE_SYSTEM_PROCESSOR}" MATCHES "x86_64")
6
7SET(PROJECT_SOURCE_FILES
8 src/main.cpp
9 ../FlairGCS/src/file_ui.cpp
10)
11
12SET(FILES_TO_MOC
13 ../FlairGCS/src/file_ui.h
14)
15
16FIND_PACKAGE(Qt4 REQUIRED)
17SET(QT_USE_QTGUI TRUE)
18SET(QT_USE_QTMAIN 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 ${QT_INCLUDE_DIR}
29)
30
31LINK_DIRECTORIES (
32 ${QT_LIBRARY_DIR}
33)
34
35ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
36TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} FileLib)
37
38INSTALL(
39 TARGETS ${PROJECT_NAME}
40 RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
41)
42
43add_custom_target(
44 compile_info
45 COMMAND $ENV{FLAIR_ROOT}/flair-dev/scripts/compile_info.sh ${CMAKE_C_COMPILER} ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/src/unexported/compile_info.h
46)
47
48add_dependencies(${PROJECT_NAME} compile_info)
49
50SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
51
52else()
53warn("${PROJECT_NAME} will not be built for ${CMAKE_SYSTEM_PROCESSOR} architecture")
54endif()
Note: See TracBrowser for help on using the repository browser.