2021-02-12 17:21:04 +01:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
|
|
|
find_path(Settings_INCLUDE_DIR pajlada/settings.hpp)
|
|
|
|
find_library(Settings_LIBRARY PajladaSettings)
|
|
|
|
|
2021-02-13 10:40:27 +01:00
|
|
|
find_package_handle_standard_args(Settings DEFAULT_MSG Settings_INCLUDE_DIR Settings_LIBRARY)
|
2021-02-12 17:21:04 +01:00
|
|
|
|
|
|
|
if (Settings_FOUND)
|
|
|
|
add_library(Settings::Settings INTERFACE IMPORTED)
|
|
|
|
set_target_properties(Settings::Settings PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${Settings_INCLUDE_DIR}"
|
|
|
|
INTERFACE_LINK_LIBRARIES "${Settings_LIBRARY}"
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
mark_as_advanced(Settings_INCLUDE_DIR Settings_LIBRARY)
|