mirror of
https://github.com/YACReader/yacreader
synced 2026-04-12 15:49:53 -04:00
Use Find*.cmake files for backend discovery
This commit is contained in:
@ -15,7 +15,7 @@ endfunction()
|
||||
function(yacreader_add_imported_library target_name)
|
||||
set(options)
|
||||
set(oneValueArgs TYPE LOCATION IMPORTED_IMPLIB INCLUDE_DIR)
|
||||
set(multiValueArgs LINK_LIBRARIES)
|
||||
set(multiValueArgs LINK_LIBRARIES COMPILE_DEFINITIONS)
|
||||
cmake_parse_arguments(YR "${options}" "${oneValueArgs}" "${multiValueArgs}" ${ARGN})
|
||||
|
||||
if(NOT YR_TYPE)
|
||||
@ -41,4 +41,8 @@ function(yacreader_add_imported_library target_name)
|
||||
if(YR_LINK_LIBRARIES)
|
||||
set_property(TARGET "${target_name}" PROPERTY INTERFACE_LINK_LIBRARIES "${YR_LINK_LIBRARIES}")
|
||||
endif()
|
||||
|
||||
if(YR_COMPILE_DEFINITIONS)
|
||||
set_property(TARGET "${target_name}" PROPERTY INTERFACE_COMPILE_DEFINITIONS "${YR_COMPILE_DEFINITIONS}")
|
||||
endif()
|
||||
endfunction()
|
||||
|
||||
Reference in New Issue
Block a user