-
Notifications
You must be signed in to change notification settings - Fork 729
Cmake improvements #4076
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
lum1n0us
merged 8 commits into
bytecodealliance:main
from
peter-tatrai:cmake-improvements
Feb 21, 2025
Merged
Cmake improvements #4076
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b0580b8
Use CMake standard BUILD_SHARED_LIBS
peter-tatrai 8dc0efb
Remove version.h from installed header files
peter-tatrai 67d20c5
Install vmlib public header files
peter-tatrai da52dd1
Install cmake package
peter-tatrai dcfcaa1
Print build platform during configuration step
peter-tatrai d7d9f9f
Improve windows product-mini CMakeLists.txt
peter-tatrai 9642a3c
Fix missing symbols when linking windows product-mini with shared vmlib
peter-tatrai 7697635
Improve Darwin product-mini CMakeLists.txt
peter-tatrai 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
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,6 @@ | ||
| # Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| @PACKAGE_INIT@ | ||
peter-tatrai marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
|
||
| include("${CMAKE_CURRENT_LIST_DIR}/iwasmTargets.cmake") | ||
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,28 @@ | ||
| # Copyright (C) 2019 Intel Corporation. All rights reserved. | ||
| # SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception | ||
|
|
||
| function(install_iwasm_package) | ||
| install (EXPORT iwasmTargets | ||
| FILE iwasmTargets.cmake | ||
| NAMESPACE iwasm:: | ||
| DESTINATION lib/cmake/iwasm | ||
| ) | ||
|
|
||
| include (CMakePackageConfigHelpers) | ||
| configure_package_config_file (${CMAKE_CURRENT_FUNCTION_LIST_DIR}/iwasmConfig.cmake.in | ||
| "${CMAKE_CURRENT_BINARY_DIR}/iwasmConfig.cmake" | ||
| INSTALL_DESTINATION lib/cmake/iwasm | ||
| ) | ||
|
|
||
| write_basic_package_version_file( | ||
| "${CMAKE_CURRENT_BINARY_DIR}/iwasmConfigVersion.cmake" | ||
| VERSION ${WAMR_VERSION_MAJOR}.${WAMR_VERSION_MINOR}.${WAMR_VERSION_PATCH} | ||
| COMPATIBILITY SameMajorVersion | ||
| ) | ||
|
|
||
| install (FILES | ||
| "${CMAKE_CURRENT_BINARY_DIR}/iwasmConfig.cmake" | ||
| "${CMAKE_CURRENT_BINARY_DIR}/iwasmConfigVersion.cmake" | ||
| DESTINATION lib/cmake/iwasm | ||
| ) | ||
| endfunction() |
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
Oops, something went wrong.
Oops, something went wrong.
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.