Skip to content
Snippets Groups Projects
Commit 71630179 authored by Maxence Naud's avatar Maxence Naud
Browse files

[Add] files for compilation

parent 65c2bc33
No related branches found
No related tags found
1 merge request!3Dev - learning - v0.1.0
@PACKAGE_INIT@
include(${CMAKE_CURRENT_LIST_DIR}/aidge_learning-config-version.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/aidge_learning-targets.cmake)
Include(FetchContent)
FetchContent_Declare(
Catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git
GIT_TAG v3.0.1 # or a later release
)
FetchContent_MakeAvailable(Catch2)
file(GLOB_RECURSE src_files "*.cpp")
add_executable(tests${module_name} ${src_files})
target_link_libraries(tests${module_name} PUBLIC ${module_name})
target_link_libraries(tests${module_name} PRIVATE Catch2::Catch2WithMain)
list(APPEND CMAKE_MODULE_PATH ${catch2_SOURCE_DIR}/extras)
include(CTest)
include(Catch)
catch_discover_tests(tests${module_name})
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment