Create jasirijstin

This commit is contained in:
JstinJasiri 2025-12-18 22:29:14 -06:00 committed by GitHub
parent 9156d4caac
commit 2f7f4e67cb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

32
jasirijstin Normal file
View File

@ -0,0 +1,32 @@
cmake_minimum_required(VERSION 3.20)
project(SecureScanPro LANGUAGES CXX)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
include(CTest)
enable_testing()
include(FetchContent)
FetchContent_Declare(
googletest
URL https://github.com/google/googletest/archive/refs/tags/v1.14.0.zip
)
set(gtest_force_shared_crt ON CACHE BOOL"" FORCE)
FetchContent_MakeAvailable(googletest)
add_executable(securescan_tests
tests/tests_baseline.cpp
tests/test_detector.cpp
tests/test_pipeline_intergration.cpp
)
target_link_libraries(securescan_tests PRIVATE GTest::gtest_main)
target_include_directories(securescan_tests PRIVATE ${CMAKE_SOURCE_DIR}/src)
include(GoogleTest)
gtest_discover_tests(securescan_tests)
cmake -S . -B build
cmake --build build
ctest --test-dir build --output-on-failure