2021-02-12 17:21:04 +01:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2021-02-20 15:51:52 +01:00
|
|
|
find_path(PajladaSettings_INCLUDE_DIR pajlada/settings.hpp)
|
|
|
|
find_library(PajladaSettings_LIBRARY PajladaSettings)
|
2021-02-12 17:21:04 +01:00
|
|
|
|
2021-02-20 15:51:52 +01:00
|
|
|
find_package_handle_standard_args(PajladaSettings DEFAULT_MSG PajladaSettings_INCLUDE_DIR PajladaSettings_LIBRARY)
|
2021-02-12 17:21:04 +01:00
|
|
|
|
2021-02-20 15:51:52 +01:00
|
|
|
if (PajladaSettings_FOUND)
|
|
|
|
add_library(Pajlada::Settings INTERFACE IMPORTED)
|
|
|
|
set_target_properties(Pajlada::Settings PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${PajladaSettings_INCLUDE_DIR}"
|
|
|
|
INTERFACE_LINK_LIBRARIES "${PajladaSettings_LIBRARY}"
|
2021-02-12 17:21:04 +01:00
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
2021-02-20 15:51:52 +01:00
|
|
|
mark_as_advanced(PajladaSettings_INCLUDE_DIR PajladaSettings_LIBRARY)
|