dolphin/Externals/WIL/tests/cpplatest/CMakeLists.txt

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
1.1 KiB
CMake
Raw Normal View History

2019-10-31 23:09:52 +00:00
add_executable(witest.cpplatest)
2019-10-31 23:09:52 +00:00
# Compilers often don't use the latest C++ standard as the default. Periodically update this value (possibly conditioned
# on compiler) as new standards are ratified/support is available
target_compile_features(witest.cpplatest PRIVATE cxx_std_20)
2019-10-31 23:09:52 +00:00
if (CMAKE_CXX_COMPILER_ID MATCHES "Clang")
# Clang is not compatible with the experimental coroutine header, so temporarily disable some headers until full
# C++20 support is available
set(COROUTINE_SOURCES)
else()
set(COROUTINE_SOURCES
${CMAKE_CURRENT_SOURCE_DIR}/../ComApartmentVariableTests.cpp)
2019-10-31 23:09:52 +00:00
endif()
target_sources(witest.cpplatest PRIVATE
${COMMON_SOURCES}
${COROUTINE_SOURCES}
2019-10-31 23:09:52 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/../CppWinRTTests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../CppWinRT20Tests.cpp
2019-10-31 23:09:52 +00:00
${CMAKE_CURRENT_SOURCE_DIR}/../StlTests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../TokenHelpersTests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../UniqueWinRTEventTokenTests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../WatcherTests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../WinRTTests.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../WinVerifyTrustTest.cpp
2019-10-31 23:09:52 +00:00
)