cleaned up the logic for the cmake linking libs(ADC).

This commit is contained in:
jakeg00dwin 2024-07-28 17:02:27 -07:00
parent f484e625af
commit c2b2ae894a
1 changed files with 7 additions and 12 deletions

View File

@ -1,21 +1,16 @@
add_library(ADC STATIC
ADC.c
)
target_include_directories(ADC PUBLIC
${CMAKE_CURRENT_LIST_DIR}
)
if(UNIT_TESTING) if(UNIT_TESTING)
add_library(ADC STATIC
ADC.c
)
target_include_directories(ADC PUBLIC
${CMAKE_CURRENT_LIST_DIR}
)
target_link_libraries(ADC target_link_libraries(ADC
MockRegEdit MockRegEdit
) )
else() else()
add_library(ADC STATIC
ADC.c
)
target_include_directories(ADC PUBLIC
${CMAKE_CURRENT_LIST_DIR}
)
target_link_libraries(ADC target_link_libraries(ADC
RegEdit RegEdit
) )