Selaa lähdekoodia

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

David Partyka 14 vuotta sitten
vanhempi
commit
908dfc7572
1 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  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
 #