Mercurial > projects > qtd
diff CMakeLists.txt @ 227:846b89285e2b
Generate moc for UrlHandler_shell.cpp.
author | SokoL_SD |
---|---|
date | Fri, 17 Jul 2009 10:08:52 +0000 |
parents | f7dca08fc816 |
children | e1e8a95dc401 |
line wrap: on
line diff
--- a/CMakeLists.txt Thu Jul 16 23:03:31 2009 +0000 +++ b/CMakeLists.txt Fri Jul 17 10:08:52 2009 +0000 @@ -1,6 +1,9 @@ cmake_minimum_required(VERSION 2.6) PROJECT(qtd CXX C) FIND_PACKAGE(Qt4 REQUIRED) +set (QT_USE_QTMAIN false) +set (QT_USE_QTGUI false) +include(${QT_USE_FILE} ${CMAKE_CURRENT_SOURCE_DIR}) ##-------------------------------------------- ## Settings. @@ -229,6 +232,7 @@ set(link_cpp) set(link_d) set(cpp_files) + set(cpp_generated_files) set(d_files) set(classes) set(d_generated_files) @@ -283,7 +287,11 @@ foreach (cpp_source ${cpp_files}) set(cpp_sources ${cpp_sources} ${CMAKE_SOURCE_DIR}/cpp/${cpp_source}.cpp) - endforeach(cpp_source) + endforeach(cpp_source ${cpp_files}) + foreach (cpp_source ${cpp_generated_files}) + set(cpp_sources ${cpp_sources} ${CMAKE_BINARY_DIR}/cpp/${cpp_source}.cpp) + message(${CMAKE_BINARY_DIR}/cpp/${cpp_source}.cpp) + endforeach(cpp_source ${cpp_generated_files}) foreach(d_source ${d_version_files}) set(d_sources ${d_sources} ${CMAKE_SOURCE_DIR}/qt/d${D_VERSION}/qt/${d_source}.d) endforeach(d_source ${d_version_files})