-IF(WIN32)
- SET(CMAKE_INSTALL_PREFIX C:/CreaTools/crea)
-ENDIF(WIN32)
SET(CPACK_PACKAGE_VERSION_MAJOR ${crea_MAJOR_VERSION})
SET(CPACK_PACKAGE_VERSION_MINOR ${crea_MINOR_VERSION})
SET(CPACK_PACKAGE_VERSION_PATCH ${crea_BUILD_VERSION})
-SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\crea-${crea_MAJOR_VERSION}.${crea_MINOR_VERSION}.${crea_BUILD_VERSION}")
+IF(WIN32)
+ SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools\\\\crea-${crea_MAJOR_VERSION}.${crea_MINOR_VERSION}.${crea_BUILD_VERSION}")
+ELSE(WIN32)
+ SET(CPACK_PACKAGE_INSTALL_DIRECTORY "CreaTools/crea-${crea_MAJOR_VERSION}.${crea_MINOR_VERSION}.${crea_BUILD_VERSION}")
+ENDIF(WIN32)
+
IF(WIN32 AND NOT UNIX)
# There is a bug in NSI that does not handle full unix paths properly. Make
# sure there is at least one set of four (4) backlasshes.
SET(CPACK_SOURCE_STRIP_FILES "")
ENDIF(WIN32 AND NOT UNIX)
SET(CPACK_PACKAGE_EXECUTABLES "creaNewProject" "New project")
+
INCLUDE(CPack)