Skip to content

Commit

Permalink
Add cmake install steps
Browse files Browse the repository at this point in the history
Signed-off-by: Uilian Ries <[email protected]>
  • Loading branch information
uilianries committed Feb 28, 2024
1 parent 01c745f commit bd4929a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,14 @@ else()
endif(BUILD_TESTING)

add_subdirectory(singleheader)


install(
FILES include/idna.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

install(
DIRECTORY include/ada
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)
9 changes: 8 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,11 @@ endif()

if(ADA_SANITIZE_UNDEFINED)
target_compile_options(ada-idna INTERFACE -fsanitize=undefined -fno-sanitize-recover=all)
endif()
endif()

install(
TARGETS ada-idna
RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR}
LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR}
ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

0 comments on commit bd4929a

Please sign in to comment.