mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
16 lines
573 B
CMake
16 lines
573 B
CMake
include(FindPackageHandleStandardArgs)
|
|
|
|
find_path(Settings_INCLUDE_DIR pajlada/settings.hpp)
|
|
find_library(Settings_LIBRARY PajladaSettings)
|
|
|
|
find_package_handle_standard_args(Settings DEFAULT_MSG Settings_INCLUDE_DIR Settings_LIBRARY)
|
|
|
|
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) |