annotate tools/duic/CMakeLists.txt @ 82:420f2aab9ab6

temporary fix for "::" in duic for all types
author eldar
date Sun, 24 May 2009 17:07:11 +0000
parents 753b1973273b
children
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)
82
420f2aab9ab6 temporary fix for "::" in duic for all types
eldar
parents: 64
diff changeset
6 set (QT_USE_QTXML true)
420f2aab9ab6 temporary fix for "::" in duic for all types
eldar
parents: 64
diff changeset
7 include (${QT_USE_FILE})
64
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
8 include_directories( ${QT_INCLUDE_DIR}
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
9 ${CMAKE_CURRENT_SOURCE_DIR}
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
10 ${CMAKE_CURRENT_SOURCE_DIR}/d )
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 ########### next target ###############
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
13
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
14 set(uic_bin_SRCS
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
15 customwidgetsinfo.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
16 databaseinfo.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
17 driver.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
18 treewalker.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
19 ui4.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
20 uic.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
21 validator.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
22 ${CMAKE_CURRENT_SOURCE_DIR}/d/dextractimages.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
23 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwritedeclaration.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
24 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteincludes.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
25 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteicondata.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
26 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteicondeclaration.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
27 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteiconinitialization.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
28 ${CMAKE_CURRENT_SOURCE_DIR}/d/dwriteinitialization.cpp
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
29 main.cpp )
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
30
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
31 add_executable(duic ${uic_bin_SRCS})
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
32 set_target_properties(duic PROPERTIES OUTPUT_NAME duic)
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
33 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
34
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
35 target_link_libraries(duic ${QT_QTCORE_LIBRARY} ${QT_QTXML_LIBRARY})
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
36
753b1973273b CMake: Another fixes for build on Windows
SokoL_SD
parents: 59
diff changeset
37 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
38