diff --git a/CMakeLists.txt b/CMakeLists.txt index 78feeac..111601f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,6 +9,11 @@ set( CMAKE_COLOR_MAKEFILE ON ) set( CMAKE_VERBOSE_MAKEFILE ON ) set( CMAKE_EXPORT_COMPILE_COMMANDS ON ) +option( BUILD_SHARED_LIBS "Build using shared libraries" OFF ) + +# This provides standard installation directory variables. +include(GNUInstallDirs) + # Determine if we're built as a subproject (using add_subdirectory) # or if this is the master project. set( MASTER_PROJECT OFF ) @@ -142,4 +147,15 @@ if( MASTER_PROJECT ) PRIVATE sai ) -endif() \ No newline at end of file + + install( + TARGETS sai + DESTINATION ${CMAKE_INSTALL_LIBDIR} + ) + + install( + FILES include/sai.hpp + DESTINATION ${CMAKE_INSTALL_INCLUDEDIR} + ) + +endif()