view tools/drcc/CMakeLists.txt @ 248:7664de4a55e5

Fixed #23. QtD_QObjectEntity is not created dynamically for shell classes any more. Class initialization is now performed by static constructors. When wrapping QObjects returned from functions, their run-time types are now taken into account. QObjects are allocated on GC heap, a doubly-linked list is used to prevent them from been collected (arguably a better solution than allocating on C heap and adding GC ranges) Minor changes (including unnecessary).
author maxter
date Thu, 20 Aug 2009 14:47:17 +0000
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)