mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-27 18:39:01 +08:00
1b9d210262
* [ports/nuklear] Upgrade to latest nuklear; use correct LICENSE path; correct `GNUInstallDirs` usage * [ports/nuklear/vcpkg.json] Set license * [ports/nuklear/vcpkg.json] version-date Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> * `./vcpkg x-add-version --all --overwrite-version` * [versions/n-/nuklear.json] Remove `2022-05-12` @ `"port-version": 1` * [ports/nuklear/portfile.cmake] Remove quotes around `${FEATURE_OPTIONS}` * [nuklear] Revert reformat Co-authored-by: Thomas1664 <46387399+Thomas1664@users.noreply.github.com> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
35 lines
967 B
CMake
35 lines
967 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(Nuklear LANGUAGES C)
|
|
|
|
option(INSTALL_EXAMPLE "Install the example code" OFF)
|
|
option(INSTALL_DEMO "Install the demo code" OFF)
|
|
|
|
add_library(nuklear INTERFACE)
|
|
|
|
target_include_directories(nuklear INTERFACE $<INSTALL_INTERFACE:include/nuklear>)
|
|
target_compile_definitions(nuklear INTERFACE NK_IMPLEMENTATION)
|
|
|
|
# Installation
|
|
install(
|
|
TARGETS nuklear
|
|
EXPORT unofficial-nuklear
|
|
RUNTIME DESTINATION bin
|
|
LIBRARY DESTINATION lib
|
|
ARCHIVE DESTINATION lib
|
|
)
|
|
|
|
install(FILES "${CMAKE_CURRENT_LIST_DIR}/nuklear.h" DESTINATION "include/nuklear")
|
|
|
|
|
|
install(EXPORT unofficial-nuklear FILE unofficial-nuklear-config.cmake DESTINATION share/unofficial-nuklear)
|
|
|
|
if (INSTALL_EXAMPLE)
|
|
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/example" DESTINATION share/nuklear)
|
|
|
|
endif()
|
|
|
|
if (INSTALL_DEMO)
|
|
install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/demo" DESTINATION share/nuklear)
|
|
|
|
endif()
|