mirror-chatterino2/cmake/FindPajladaSignals.cmake

15 lines
518 B
CMake
Raw Normal View History

2021-02-12 11:36:42 +01:00
include(FindPackageHandleStandardArgs)
2021-02-20 15:49:59 +01:00
find_path(PajladaSignals_INCLUDE_DIR pajlada/signals/signal.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/signals/include)
2021-02-12 11:36:42 +01:00
2021-02-20 15:49:59 +01:00
find_package_handle_standard_args(PajladaSignals DEFAULT_MSG PajladaSignals_INCLUDE_DIR)
2021-02-12 11:36:42 +01:00
2021-02-20 15:49:59 +01:00
if (PajladaSignals_FOUND)
add_library(Pajlada::Signals INTERFACE IMPORTED)
set_target_properties(Pajlada::Signals PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${PajladaSignals_INCLUDE_DIR}"
2021-02-12 11:36:42 +01:00
)
endif ()
2021-02-20 15:49:59 +01:00
mark_as_advanced(PajladaSignals_INCLUDE_DIR)