Line | |
---|
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 | 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(
|
---|
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 |
|
---|
46 | add_dependencies(${PROJECT_NAME} svn_rev)
|
---|
47 |
|
---|
48 |
|
---|
49 | SET(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/bin)
|
---|
Note:
See
TracBrowser
for help on using the repository browser.