Last change
on this file since 89 was 45, checked in by Sanahuja Guillaume, 8 years ago |
added compile info
|
File size:
1.1 KB
|
Rev | Line | |
---|
[40] | 1 | PROJECT(dbt2csv)
|
---|
[12] | 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 | INCLUDE(${QT_USE_FILE})
|
---|
| 18 |
|
---|
| 19 | QT4_WRAP_CPP(MOC_SOURCES ${FILES_TO_MOC})
|
---|
| 20 |
|
---|
| 21 | ADD_DEFINITIONS(${QT_DEFINITIONS})
|
---|
| 22 |
|
---|
| 23 | include_directories(
|
---|
| 24 | ${CMAKE_SOURCE_DIR}/src
|
---|
| 25 | ../FlairGCS/src/
|
---|
| 26 | ${QT_INCLUDE_DIR}
|
---|
| 27 | )
|
---|
| 28 |
|
---|
| 29 | LINK_DIRECTORIES (
|
---|
| 30 | ${QT_LIBRARY_DIR}
|
---|
| 31 | )
|
---|
| 32 |
|
---|
| 33 | ADD_EXECUTABLE(${PROJECT_NAME} ${PROJECT_SOURCE_FILES} ${MOC_SOURCES} ${RCC_SOURCES})
|
---|
| 34 | TARGET_LINK_LIBRARIES(${PROJECT_NAME} ${QT_LIBRARIES} FileLib)
|
---|
| 35 |
|
---|
| 36 | INSTALL(
|
---|
| 37 | TARGETS ${PROJECT_NAME}
|
---|
| 38 | RUNTIME DESTINATION $ENV{FLAIR_ROOT}/flair-bin/tools/${ARCH_DIR}
|
---|
| 39 | )
|
---|
| 40 |
|
---|
| 41 | add_custom_target(
|
---|
[45] | 42 | compile_info
|
---|
| 43 | 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
|
---|
[12] | 44 | )
|
---|
| 45 |
|
---|
[45] | 46 | add_dependencies(${PROJECT_NAME} compile_info)
|
---|
[12] | 47 |
|
---|
| 48 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.