2017-08-08 17:56:34 +00:00
|
|
|
# just to make catching binaries other than tests easier in case maintainer forgot to specify
|
|
|
|
# output directory or something strange happens, no files should be placed there
|
2015-12-10 05:06:13 +02:00
|
|
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/tests")
|
|
|
|
|
|
|
|
include_directories(
|
|
|
|
${CMAKE_BINARY_DIR}/include
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtCore
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtCore
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtGui
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtGui
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtDBus
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDBus
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtDeclarative
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDeclarative
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtDesigner
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtDesigner
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtNetwork
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtNetwork
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtSql
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtSql
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtSvg
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtSvg
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtXml
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtXml
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtScript
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtScript
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtScriptTools
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtScriptTools
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtTest
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtTest
|
|
|
|
${CMAKE_BINARY_DIR}/include/QtUiTools
|
|
|
|
${CMAKE_BINARY_DIR}/privateinclude/QtUiTools
|
|
|
|
)
|
2016-01-16 15:06:55 +02:00
|
|
|
|
2019-07-11 15:41:03 +00:00
|
|
|
# FIXME: most tests are not namespaces aware
|
|
|
|
add_definitions(-DQT_NAMESPACE_COMPAT)
|
2019-05-17 20:46:49 +00:00
|
|
|
|
2019-12-02 02:34:13 +00:00
|
|
|
set(AUTOCMAKEFILES)
|
2019-12-02 04:22:03 +00:00
|
|
|
set(BENCHMARKSCMAKEFILES)
|
2019-12-02 02:34:13 +00:00
|
|
|
if(KATIE_TESTS)
|
|
|
|
file(GLOB_RECURSE AUTOCMAKEFILES "${CMAKE_CURRENT_SOURCE_DIR}/auto/*/CMakeLists.txt")
|
|
|
|
endif()
|
|
|
|
if(KATIE_BENCHMARKS)
|
2019-12-02 04:22:03 +00:00
|
|
|
file(GLOB_RECURSE BENCHMARKSCMAKEFILES "${CMAKE_CURRENT_SOURCE_DIR}/benchmarks/*/CMakeLists.txt")
|
2019-12-02 02:34:13 +00:00
|
|
|
endif()
|
2019-12-02 04:22:03 +00:00
|
|
|
foreach(cmakefile ${AUTOCMAKEFILES} ${BENCHMARKSCMAKEFILES})
|
2016-01-16 15:06:55 +02:00
|
|
|
get_filename_component(dirname ${cmakefile} PATH)
|
2016-08-28 03:44:36 +03:00
|
|
|
# message(STATUS "Adding sub-directory: ${dirname}")
|
|
|
|
add_subdirectory(${dirname})
|
2016-01-16 15:06:55 +02:00
|
|
|
endforeach()
|