From 65dd91bed202045d8578c07bb81e883f43095e9c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=80=AA=E5=BA=86=E4=BA=AE?= Date: Wed, 16 Aug 2023 17:23:02 +0800 Subject: [PATCH] add cmake MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 倪庆亮 --- cmake/nuklear-config.cmake | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 cmake/nuklear-config.cmake diff --git a/cmake/nuklear-config.cmake b/cmake/nuklear-config.cmake new file mode 100644 index 0000000..7caf6f5 --- /dev/null +++ b/cmake/nuklear-config.cmake @@ -0,0 +1,15 @@ +include(FindPackageHandleStandardArgs) + +set(NUKLEAR_FOUND TRUE) + +get_filename_component(CMAKE_CURRENT_LIST_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(nuklear_INSTALL_PREFIX "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE) + +set(nuklear_INCLUDE_DIRS ${nuklear_INSTALL_PREFIX}) + +add_library(nuklear INTERFACE IMPORTED) +set_target_properties(nuklear PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${nuklear_INCLUDE_DIRS}" +) + +find_package_handle_standard_args(nuklear DEFAULT_MSG nuklear_INCLUDE_DIRS)