ソースを参照

Include ctk name and version in CTK_INSTALL_{LIB/INCLUDE}_DIR.

David Partyka 14 年 前
コミット
908dfc7572
共有1 個のファイルを変更した8 個の追加8 個の削除を含む
  1. 8 8
      CMakeLists.txt

+ 8 - 8
CMakeLists.txt

@@ -87,14 +87,6 @@ FOREACH(type LIBRARY RUNTIME ARCHIVE)
 ENDFOREACH()
 
 #-----------------------------------------------------------------------------
-# Install directories, used for install rules.
-#
-SET(CTK_INSTALL_BIN_DIR "bin")
-SET(CTK_INSTALL_LIB_DIR "lib")
-SET(CTK_INSTALL_INCLUDE_DIR "include")
-SET(CTK_INSTALL_DOC_DIR "doc")
-
-#-----------------------------------------------------------------------------
 # CTK version number.  An even minor number corresponds to releases.
 #
 SET(CTK_MAJOR_VERSION 0)
@@ -114,6 +106,14 @@ IF(NOT CTK_NO_LIBRARY_VERSION)
 ENDIF()
 
 #-----------------------------------------------------------------------------
+# Install directories, used for install rules.
+#
+SET(CTK_INSTALL_BIN_DIR "bin")
+SET(CTK_INSTALL_LIB_DIR "lib/ctk-${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}")
+SET(CTK_INSTALL_INCLUDE_DIR "include/ctk-${CTK_MAJOR_VERSION}.${CTK_MINOR_VERSION}")
+SET(CTK_INSTALL_DOC_DIR "doc")
+
+#-----------------------------------------------------------------------------
 # Update CMake module path
 # Note: FindXXX.cmake script specific to utility should be copied into Utilities/CMake
 #