Skip to content

add functionality to install needed header files #145

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

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add functionality to install some header files
  • Loading branch information
vancraar committed Jan 17, 2025
commit 4b8da92b7d00de03c55a90e47a5d3bccae9e5fe3
8 changes: 7 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -245,10 +245,16 @@ endif()
# target_compile_options(discotec PUBLIC $<$<OR:$<CONFIG:Release>,$<CONFIG:RelWithDebInfo>>:-mmic>)
#endif()

file(GLOB_RECURSE DISCOTEC_HEADERS ${CMAKE_CURRENT_SOURCE_DIR}/*.hpp) #TODO: @freifrauvonbleifrei: which files should be included? Do we keep the same structure as in the sources?

message(STATUS "DisCoTec headers: ${DISCOTEC_HEADERS}")

set_target_properties(discotec PROPERTIES PUBLIC_HEADER "${DISCOTEC_HEADERS}")

install(TARGETS discotec
EXPORT discotecTargets
LIBRARY DESTINATION lib
ARCHIVE DESTINATION lib
RUNTIME DESTINATION bin
INCLUDES DESTINATION include
PUBLIC_HEADER DESTINATION include
)