Skip to content
Merged
Changes from all commits
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
18 changes: 17 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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 )
Expand Down Expand Up @@ -142,4 +147,15 @@ if( MASTER_PROJECT )
PRIVATE
sai
)
endif()

install(
TARGETS sai
DESTINATION ${CMAKE_INSTALL_LIBDIR}
)

install(
FILES include/sai.hpp
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
)

endif()