lokinet/cmake/add_import_library.cmake

7 lines
180 B
CMake

function(add_import_library libname)
add_library(libname SHARED IMPORTED)
if(NOT TARGET libname)
message(FATAL "unable to find library ${libname}")
endif()
endfunction()