From a0126053f649d6bb11abf933fae8b6c5ffea11b0 Mon Sep 17 00:00:00 2001 From: jakeg00dwin Date: Fri, 2 Aug 2024 13:10:18 -0700 Subject: [PATCH] Setup conditional logic for register editing module inclusion. --- src/timer/CMakeLists.txt | 10 ++++++++++ src/timer/timer.h | 2 ++ 2 files changed, 12 insertions(+) diff --git a/src/timer/CMakeLists.txt b/src/timer/CMakeLists.txt index ba97587..b6c0bb7 100644 --- a/src/timer/CMakeLists.txt +++ b/src/timer/CMakeLists.txt @@ -5,3 +5,13 @@ add_library(timer STATIC target_include_directories(timer PUBLIC ${CMAKE_CURRENT_LIST_DIR} ) + +if(UNIT_TESTING) + target_link_libraries(timer + MockRegEdit + ) +else() + target_link_libraries(timer + RegEdit + ) +endif() diff --git a/src/timer/timer.h b/src/timer/timer.h index a2c4eab..fe40ebb 100644 --- a/src/timer/timer.h +++ b/src/timer/timer.h @@ -17,4 +17,6 @@ */ int add_two(int a); + + #endif //TIMER