From a9af4fd3243e470ff33d50968f998bf78c152717 Mon Sep 17 00:00:00 2001 From: bd Date: Sun, 2 Mar 2025 13:37:53 -0500 Subject: Added logger class, tests, arg parsing and cleanup --- CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index e36b290..17ec29f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -16,20 +16,22 @@ include_directories( # gather source files file(GLOB_RECURSE SRCS "src/*.cc") -list(REMOVE_ITEM SRCS "${CMAKE_CURRENT_SOURCE_DIR}/src/rv.cc") +list(REMOVE_ITEM SRCS "${CMAKE_CURRENT_SOURCE_DIR}/src/main.cc") # find python3 components find_package(Python3 COMPONENTS Development REQUIRED) # binary executable -add_executable(${PROJECT_NAME} ${SRCS} src/rv.cc) +add_executable(${PROJECT_NAME} ${SRCS} src/main.cc) target_link_libraries(${PROJECT_NAME} PRIVATE Python3::Python) find_package(Catch2 REQUIRED) -set(TESTDIR tests) + +#gather test files +file(GLOB_RECURSE TESTS "tests/*.cc") # test executable -add_executable(tests ${SRCS} ${TESTDIR}/tests.cc) +add_executable(tests ${SRCS} ${TESTS}) target_link_libraries(tests PRIVATE Catch2::Catch2WithMain PRIVATE Python3::Python) # test discovery -- cgit v1.2.3