diff --git a/CMakeLists.txt b/CMakeLists.txt index 9d7dbab..cc7240e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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} +) diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 6e05a1d..4da63e8 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -36,4 +36,11 @@ endif() if(ADA_SANITIZE_UNDEFINED) target_compile_options(ada-idna INTERFACE -fsanitize=undefined -fno-sanitize-recover=all) -endif() \ No newline at end of file +endif() + +install( + TARGETS ada-idna + RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR} + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} +)