mirror of
https://github.com/catchorg/Catch2.git
synced 2024-11-25 23:06:10 +01:00
Small CMakeLists cleanup
This commit is contained in:
parent
1cc05122d7
commit
a4c31ecd16
@ -89,33 +89,6 @@ include(CTest)
|
|||||||
add_executable(SelfTest ${TEST_SOURCES})
|
add_executable(SelfTest ${TEST_SOURCES})
|
||||||
target_link_libraries(SelfTest PRIVATE Catch2)
|
target_link_libraries(SelfTest PRIVATE Catch2)
|
||||||
|
|
||||||
# It took CMake until 3.8 to abandon the doomed approach of enumerating
|
|
||||||
# required features so we just list bunch of C++11 and C++14 features.
|
|
||||||
target_compile_features(SelfTest
|
|
||||||
PRIVATE
|
|
||||||
cxx_alignas
|
|
||||||
cxx_alignof
|
|
||||||
cxx_attributes
|
|
||||||
cxx_auto_type
|
|
||||||
cxx_constexpr
|
|
||||||
cxx_defaulted_functions
|
|
||||||
cxx_deleted_functions
|
|
||||||
cxx_final
|
|
||||||
cxx_lambdas
|
|
||||||
cxx_noexcept
|
|
||||||
cxx_override
|
|
||||||
cxx_range_for
|
|
||||||
cxx_rvalue_references
|
|
||||||
cxx_static_assert
|
|
||||||
cxx_strong_enums
|
|
||||||
cxx_trailing_return_types
|
|
||||||
cxx_unicode_literals
|
|
||||||
cxx_user_literals
|
|
||||||
cxx_variadic_macros
|
|
||||||
cxx_variable_templates
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
if (CATCH_ENABLE_COVERAGE)
|
if (CATCH_ENABLE_COVERAGE)
|
||||||
set(ENABLE_COVERAGE ON CACHE BOOL "Enable coverage build." FORCE)
|
set(ENABLE_COVERAGE ON CACHE BOOL "Enable coverage build." FORCE)
|
||||||
find_package(codecov)
|
find_package(codecov)
|
||||||
|
Loading…
Reference in New Issue
Block a user