Skip to content

Commit

Permalink
Migrate to catch2 v3
Browse files Browse the repository at this point in the history
  • Loading branch information
gurki committed Nov 5, 2024
1 parent 0ced022 commit 7217a23
Show file tree
Hide file tree
Showing 7 changed files with 26 additions and 15,014 deletions.
25 changes: 21 additions & 4 deletions tests/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@ project( vivid_tests
LANGUAGES CXX
)

find_package( Qt5 COMPONENTS Core Gui QUIET )
include( FetchContent )

FetchContent_Declare( Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.4.0
)

FetchContent_MakeAvailable( Catch2 )

set( SOURCES
test_main.cpp
# test_main.cpp
test_conversion_manual.cpp
test_profiles.cpp
test_wrapping.cpp
)

set( DEPENDENCIES vivid )
set( DEPENDENCIES
vivid
Catch2::Catch2WithMain
)

find_package( Qt5 COMPONENTS Core Gui QUIET )

if ( Qt5_FOUND )

Expand Down Expand Up @@ -42,4 +54,9 @@ target_include_directories( ${PROJECT_NAME}
target_link_libraries( ${PROJECT_NAME}
PRIVATE
${DEPENDENCIES}
)
)


include( CTest )
include( Catch )
catch_discover_tests( ${PROJECT_NAME} )
Loading

0 comments on commit 7217a23

Please sign in to comment.