Mercurial > projects > qtd
changeset 60:fbf7881c8b0f
CMake: add missing files
author | SokoL_SD |
---|---|
date | Tue, 19 May 2009 08:55:06 +0000 |
parents | 17165763b300 |
children | a2871e6b8b15 |
files | CMakeLists.txt tools/CMakeLists.txt tools/drcc/CMakeLists.txt |
diffstat | 3 files changed, 26 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/CMakeLists.txt Tue May 19 08:30:31 2009 +0000 +++ b/CMakeLists.txt Tue May 19 08:55:06 2009 +0000 @@ -613,8 +613,7 @@ endforeach(package ${packages}) add_sources_for_generating(${files_for_gen}) -set(CPACK_COMPONENTS_ALL qtd) - +set(CPACK_COMPONENTS_ALL qtd qtd_tools) ##-------------------------------------------- ## Build other parts of the QtD. @@ -630,8 +629,6 @@ add_subdirectory(examples) endif(BUILD_EXAMPLES) - - ##-------------------------------------------- ## CPack. ##--------------------------------------------
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/CMakeLists.txt Tue May 19 08:55:06 2009 +0000 @@ -0,0 +1,2 @@ +add_subdirectory(drcc) +add_subdirectory(duic) \ No newline at end of file
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/tools/drcc/CMakeLists.txt Tue May 19 08:55:06 2009 +0000 @@ -0,0 +1,23 @@ +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) +