Permalink
Browse files

add install make target

Closes Issue #19
  • Loading branch information...
gsarkis committed Sep 16, 2013
1 parent 18e62be commit bca97dfae9ef993ad742d8959033f59cef0d6fde
Showing with 8 additions and 0 deletions.
  1. +8 −0 CMakeLists.txt
View
@@ -6,6 +6,14 @@ OPTION (BUILD_EXAMPLES "Build example programs." FALSE)
OPTION (BUILD_TESTING "Build unit tests." TRUE)
OPTION (BUILD_TOOLS "Build tools that help in using the library." FALSE)
+set(INCLUDE_INSTALL_DIR
+ "${CMAKE_INSTALL_PREFIX}/include"
+ CACHE INTERNAL
+ "Directory where the library will be installed"
+)
+
+install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/fi DESTINATION ${INCLUDE_INSTALL_DIR})
+
IF (BUILD_EXAMPLES)
add_subdirectory(examples)
ENDIF (BUILD_EXAMPLES)

0 comments on commit bca97df

Please sign in to comment.