2021-02-12 11:36:42 +01:00
|
|
|
include(FindPackageHandleStandardArgs)
|
|
|
|
|
2021-02-13 10:40:27 +01:00
|
|
|
find_path(Signals_INCLUDE_DIR pajlada/signals/signal.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/signals/include)
|
2021-02-12 11:36:42 +01:00
|
|
|
|
2021-02-13 10:40:27 +01:00
|
|
|
find_package_handle_standard_args(Signals DEFAULT_MSG Signals_INCLUDE_DIR)
|
2021-02-12 11:36:42 +01:00
|
|
|
|
|
|
|
if (Signals_FOUND)
|
|
|
|
add_library(Signals::Signals INTERFACE IMPORTED)
|
|
|
|
set_target_properties(Signals::Signals PROPERTIES
|
|
|
|
INTERFACE_INCLUDE_DIRECTORIES "${Signals_INCLUDE_DIR}"
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
mark_as_advanced(Signals_INCLUDE_DIR)
|