cleaned up the logic for the cmake linking libs(ADC).
This commit is contained in:
parent
f484e625af
commit
c2b2ae894a
|
@ -1,21 +1,16 @@
|
|||
if(UNIT_TESTING)
|
||||
add_library(ADC STATIC
|
||||
add_library(ADC STATIC
|
||||
ADC.c
|
||||
)
|
||||
target_include_directories(ADC PUBLIC
|
||||
)
|
||||
target_include_directories(ADC PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
)
|
||||
)
|
||||
|
||||
if(UNIT_TESTING)
|
||||
target_link_libraries(ADC
|
||||
MockRegEdit
|
||||
)
|
||||
|
||||
else()
|
||||
add_library(ADC STATIC
|
||||
ADC.c
|
||||
)
|
||||
target_include_directories(ADC PUBLIC
|
||||
${CMAKE_CURRENT_LIST_DIR}
|
||||
)
|
||||
target_link_libraries(ADC
|
||||
RegEdit
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue