Mercurial > projects > qtd
view tools/drcc/CMakeLists.txt @ 399:e40f33cc0bf5
Explicitly include qglobal.h before all the ?master includes?.
This makes sure that macros like Q_CORE_EXPORT are already defined for all parsed header files.
Starting with this commit, QtD should build successfully against the pre-built Cocoa packages on OS X 10.6.
author | David Nadlinger <code@klickverbot.at> |
---|---|
date | Sun, 16 Jan 2011 00:56:21 +0100 |
parents | fbf7881c8b0f |
children |
line wrap: on
line source
cmake_minimum_required(VERSION 2.6) find_package(Qt4 REQUIRED) include_directories( ${QT_INCLUDE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}) ########### next target ############### set(drcc_bin_SRCS main.cpp rcc.cpp ) set (QT_USE_QTMAIN true) set (QT_USE_QTGUI false) set (QT_USE_QTXML true) include(${QT_USE_FILE} ${CMAKE_CURRENT_SOURCE_DIR}) add_executable(drcc ${drcc_bin_SRCS}) add_definitions(-DQT_UIC_D_GENERATOR) target_link_libraries(drcc ${QT_LIBRARIES} ) install(TARGETS drcc DESTINATION ${CMAKE_INSTALL_PREFIX}/bin COMPONENT qtd_tools)