diff --git a/CMakeLists.txt b/CMakeLists.txt index 07249a7..a248483 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -156,3 +156,15 @@ target_compile_definitions( if(BUILD_EXAMPLES) add_subdirectory(examples/basic) endif() + +include(GNUInstallDirs) +install( + TARGETS Mw + LIBRARY DESTINATION ${CMAKE_INSTALL_LIBDIR} + ARCHIVE DESTINATION ${CMAKE_INSTALL_LIBDIR} +) +install( + DIRECTORY ${CMAKE_SOURCE_DIR}/include/ + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + FILES_MATCHING PATTERN "*.h" +)