aboutsummaryrefslogtreecommitdiffstats
path: root/cmake/FindCLN.cmake
blob: 0b574ab9f7cb2d20042e0ece6209a2f81b311931 (plain) (blame)
1
2
3
4
5
6
7
8
find_library(CLN_LIBRARY NAMES cln)
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(CLN DEFAULT_MSG CLN_LIBRARY)

if(CLN_FOUND AND NOT TARGET CLN::CLN)
    add_library(CLN::CLN UNKNOWN IMPORTED)
    set_property(TARGET CLN::CLN PROPERTY IMPORTED_LOCATION ${CLN_LIBRARY})
endif()