katie/tests/CMakeLists.txt
Ivailo Monev bc82a3343a silence ASCII cast warnings in tests for now
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
2019-05-23 20:59:25 +00:00

47 lines
2 KiB
CMake

# 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
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/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
)
# FIXME: most tests are not namespaces aware, also do not wrap ASCII chars with
# QLatin1String and QLatin1Char
add_definitions(-DQT_NAMESPACE_COMPAT -UQT_ASCII_CAST_WARNINGS)
file(GLOB_RECURSE CMAKEFILES "${CMAKE_CURRENT_SOURCE_DIR}/*/CMakeLists.txt")
foreach(cmakefile ${CMAKEFILES})
get_filename_component(dirname ${cmakefile} PATH)
# message(STATUS "Adding sub-directory: ${dirname}")
add_subdirectory(${dirname})
endforeach()