-
-
Notifications
You must be signed in to change notification settings - Fork 104
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
Make corrosion_install
install header files and export configurations
#544
Commits on Sep 2, 2024
-
Make corrosion_install support include directories
Supports directories added with `target_include_directories` like normal. There is a slight oddity. Because of how install(DIRECTORY) works, we can't put the include directory inside `${CMAKE_INSTALL_PREFIX}/include`, since that would create `${CMAKE_INSTALL_PREFIX}/include/<include dir name>`. Instead we copy directly to the CMAKE_INSTALL_PREFIX, and then use whatever name the include directory had (hopefully just `include`). This means that when installing the path to include files will be -- Installing: /tmp/install/./include -- Installing: /tmp/install/./include/is_odd -- Installing: /tmp/install/./include/is_odd/is_odd.h Instead of just -- Installing: /tmp/install/include -- Installing: /tmp/install/include/is_odd -- Installing: /tmp/install/include/is_odd/is_odd.h
Configuration menu - View commit details
-
Copy full SHA for 6ea85a1 - Browse repository at this point
Copy the full SHA 6ea85a1View commit details -
Add special case for FILE_SETS in corrosion_install
This adds better `install` integration for targets with headers defined through target_sources. The PUBLIC_HEADER option can now be used to change the DIRECTORY.
Configuration menu - View commit details
-
Copy full SHA for 7d36fc5 - Browse repository at this point
Copy the full SHA 7d36fc5View commit details -
Add EXPORT to corrosion_install
This does an install(TARGETS EXPORT) and creates a file at ${CMAKE_BINARY_DIR}/corrosion/<export-name>TargetsCorrosion.cmake that contains the *-static and *-shared targets used by the main target. The examples use RustLib instead of ${PROJECT_NAME} for visual clarity.
Configuration menu - View commit details
-
Copy full SHA for de1acc9 - Browse repository at this point
Copy the full SHA de1acc9View commit details -
Configuration menu - View commit details
-
Copy full SHA for ceeeee7 - Browse repository at this point
Copy the full SHA ceeeee7View commit details -
Update docs for corrosion_install
Co-authored-by: Jonathan Schwender <55576758+jschwe@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for 21bdfd8 - Browse repository at this point
Copy the full SHA 21bdfd8View commit details -
Configuration menu - View commit details
-
Copy full SHA for 907057a - Browse repository at this point
Copy the full SHA 907057aView commit details -
Configuration menu - View commit details
-
Copy full SHA for 684eb57 - Browse repository at this point
Copy the full SHA 684eb57View commit details -
Configuration menu - View commit details
-
Copy full SHA for e300046 - Browse repository at this point
Copy the full SHA e300046View commit details -
Configuration menu - View commit details
-
Copy full SHA for f183906 - Browse repository at this point
Copy the full SHA f183906View commit details -
Add header file to install_lib test
This is not actually part of the test.
Configuration menu - View commit details
-
Copy full SHA for 849474c - Browse repository at this point
Copy the full SHA 849474cView commit details