Modified installation folders for Windows, based on CMake documentation:
http://www.cmake.org/cmake/help/v2.8.8/cmake.html#command:find_package
Change-Id: I8508a2955ae83aa9dec40b43a425fe5fb56e5c9a
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e54c40c..ff1726e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -737,9 +737,15 @@
# Set up install directories. INCLUDE_INSTALL_DIR, LIB_INSTALL_DIR and
# CMAKECONFIG_INSTALL_DIR must not be absolute paths.
-SET(INCLUDE_INSTALL_DIR include)
-SET(LIB_INSTALL_DIR lib)
-SET(CMAKECONFIG_INSTALL_DIR share/Ceres)
+IF (WIN32)
+ SET(INCLUDE_INSTALL_DIR Include)
+ SET(LIB_INSTALL_DIR Lib)
+ SET(CMAKECONFIG_INSTALL_DIR CMake)
+ELSE ()
+ SET(INCLUDE_INSTALL_DIR include)
+ SET(LIB_INSTALL_DIR lib)
+ SET(CMAKECONFIG_INSTALL_DIR share/Ceres)
+ENDIF ()
# This "exports" all targets which have been put into the export set
# "CeresExport". This means that CMake generates a file with the given