-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[nuklear] Export unofficial target, add features #18881
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from 2 commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
c18787e
[nuklear] Export unofficial target, add features.
f54b96a
update version stuff
bcb1c2a
Update ports/nuklear/portfile.cmake
JackBoosY d639393
Update versions/n-/nuklear.json
JackBoosY 9235184
Update ports/nuklear/CMakeLists.txt
JackBoosY 32691c6
Update ports/nuklear/CMakeLists.txt
JackBoosY cc1e3f9
Update ports/nuklear/CMakeLists.txt
JackBoosY 14206f0
Update versions/n-/nuklear.json
JackBoosY File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,31 @@ | ||
| cmake_minimum_required(VERSION 3.16) | ||
| project(Nuklear LANGUAGES C CXX) | ||
|
|
||
| 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}/src/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/example) | ||
|
JackBoosY marked this conversation as resolved.
Outdated
|
||
| endif() | ||
|
|
||
| if (INSTALL_DEMO) | ||
| install(DIRECTORY "${CMAKE_CURRENT_LIST_DIR}/demo" DESTINATION share/demo) | ||
|
JackBoosY marked this conversation as resolved.
Outdated
|
||
| endif() | ||
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| { | ||
| "name": "nuklear", | ||
| "version-date": "2021-03-18", | ||
| "port-version": 1, | ||
| "description": "This is a minimal state immediate mode graphical user interface toolkit written in ANSI C and licensed under public domain", | ||
| "homepage": "https://github.com/Immediate-Mode-UI/Nuklear", | ||
| "dependencies": [ | ||
| { | ||
| "name": "vcpkg-cmake", | ||
| "host": true | ||
| }, | ||
| { | ||
| "name": "vcpkg-cmake-config", | ||
| "host": true | ||
| } | ||
| ], | ||
| "features": { | ||
| "demo": { | ||
| "description": "Install demo files" | ||
| }, | ||
| "example": { | ||
| "description": "Install example files" | ||
| } | ||
| } | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.