cleaned up the logic for the cmake linking libs(ADC).
This commit is contained in:
parent
f484e625af
commit
c2b2ae894a
|
@ -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
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in New Issue