mirror of
https://github.com/Chatterino/chatterino2.git
synced 2024-11-13 19:49:51 +01:00
15 lines
457 B
CMake
15 lines
457 B
CMake
|
include(FindPackageHandleStandardArgs)
|
||
|
|
||
|
find_path(MagicEnum_INCLUDE_DIR magic_enum.hpp HINTS ${CMAKE_SOURCE_DIR}/lib/magic_enum/include)
|
||
|
|
||
|
find_package_handle_standard_args(MagicEnum DEFAULT_MSG MagicEnum_INCLUDE_DIR)
|
||
|
|
||
|
if (MagicEnum_FOUND)
|
||
|
add_library(MagicEnum INTERFACE IMPORTED)
|
||
|
set_target_properties(MagicEnum PROPERTIES
|
||
|
INTERFACE_INCLUDE_DIRECTORIES "${MagicEnum_INCLUDE_DIR}"
|
||
|
)
|
||
|
endif ()
|
||
|
|
||
|
mark_as_advanced(MagicEnum_INCLUDE_DIR)
|