CMake: merge binary directories of sub projects

...into top level. Exceptions are applied explicitly.

Change-Id: I59c54967dffc0bef2e8cc05c73763fcf18c12517
Reviewed-by: Eike Ziller <eike.ziller@qt.io>
This commit is contained in:
Christian Stenger
2021-01-29 09:05:16 +01:00
parent 765f518de3
commit ced96a480d
6 changed files with 8 additions and 0 deletions

View File

@@ -27,6 +27,9 @@ add_feature_info("Build tests" ${WITH_TESTS} "")
option(WITH_DEBUG_CMAKE "Enabled CMake project debugging functionality (e.g. source file disk checking)" OFF)
option(BUILD_WITH_PCH "Build with precompiled headers" ON)
# merge binary directories of sub projects into top level
set(QTC_MERGE_BINARY_DIR ON)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Set up Qt stuff:

View File

@@ -1,5 +1,6 @@
add_qtc_executable(cplusplus-keywordgen
DEPENDS CPlusPlus Utils
SOURCES cplusplus-keywordgen.cpp
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

View File

@@ -4,4 +4,5 @@ add_qtc_executable(tst_manual_widgets_crumblepath
tst_manual_widgets_crumblepath.cpp
../common/themeselector.cpp ../common/themeselector.h
../common/themes.qrc
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

View File

@@ -4,4 +4,5 @@ add_qtc_executable(tst_manual_widgets_infolabel
tst_manual_widgets_infolabel.cpp
../common/themeselector.cpp ../common/themeselector.h
../common/themes.qrc
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

View File

@@ -4,4 +4,5 @@ add_qtc_executable(tst_manual_widgets_manhattanstyle
tst_manual_widgets_manhattanstyle.cpp
../common/themeselector.cpp ../common/themeselector.h
../common/themes.qrc
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)

View File

@@ -5,4 +5,5 @@ add_qtc_executable(echo
echoclangcodemodelserver.cpp echoclangcodemodelserver.h
echoserverprocessmain.cpp
SKIP_INSTALL
PROPERTIES RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
)