annotate tools/duic/CMakeLists.txt @ 79:957f549cfc65

CMake: add QSettings to build.
author SokoL_SD
date Sun, 24 May 2009 14:05:40 +0000
parents 753b1973273b
children 420f2aab9ab6
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
64
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
1 cmake_minimum_required(VERSION 2.6)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
2 find_package(Qt4 REQUIRED)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
3
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
4 ## TODO: Is this definition correct?
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
5 add_definitions(-DQDESIGNER_UILIB_LIBRARY)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
6 include_directories( ${QT_INCLUDE_DIR}
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
7 ${CMAKE_CURRENT_SOURCE_DIR}
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
8 ${CMAKE_CURRENT_SOURCE_DIR}/d )
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
9
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
10 ########### next target ###############
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
11
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
12 set(uic_bin_SRCS
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
13 customwidgetsinfo.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
14 databaseinfo.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
15 driver.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
16 treewalker.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
17 ui4.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
18 uic.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
19 validator.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
20 ${CMAKE_CURRENT_SOURCE_DIR}/d/dextractimages.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
21 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwritedeclaration.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
22 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteincludes.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
23 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteicondata.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
24 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteicondeclaration.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
25 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteiconinitialization.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
26 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteinitialization.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
27 main.cpp )
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
28
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
29 add_executable(duic ${uic_bin_SRCS})
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
30 set_target_properties(duic PROPERTIES OUTPUT_NAME duic)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
31 set_target_properties(duic PROPERTIES COMPILE_FLAGS -DQT_UIC_D_GENERATOR)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
32
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
33 target_link_libraries(duic ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY})
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
34
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
35 install(TARGETS duic DESTINATION ${CMAKE_INSTALL_PREFIX}/bin COMPONENT qtd_tools)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
36