Skip to content
Snippets Groups Projects
Verified Commit 8e8dec68 authored by Tim Kaune's avatar Tim Kaune
Browse files

Move installed headers to subfolder with project name

Cleanup packaging
parent 1f4ff7f5
Branches
Tags
No related merge requests found
......@@ -36,7 +36,7 @@ endif ()
install(
TARGETS f2c
EXPORT NetlibF2C_Targets-executable
RUNTIME COMPONENT executable
COMPONENT executable
)
install(
......@@ -48,7 +48,7 @@ install(
)
target_include_directories(libf2c PUBLIC
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>"
"$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}-${PROJECT_VERSION}>"
)
set_property(
......@@ -61,10 +61,8 @@ set_property(
install(
TARGETS libf2c libf2cWithFortranMain
EXPORT NetlibF2C_Targets-library
LIBRARY COMPONENT library
NAMELINK_COMPONENT library
ARCHIVE COMPONENT library
FILE_SET HEADERS COMPONENT library
COMPONENT library
FILE_SET HEADERS COMPONENT library DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${PROJECT_NAME}-${PROJECT_VERSION}"
)
install(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment