]> git.armaanb.net Git - gen-shell.git/blobdiff - CMakeLists.txt
made nice
[gen-shell.git] / CMakeLists.txt
index a7661e4c32d7b42873e87cd3ea837ac531bb445f..40a3ead3d04728423b0fb96c42e628c59e323f66 100644 (file)
@@ -1,13 +1,10 @@
 cmake_minimum_required (VERSION 2.8)
-set (CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
 set (CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
 set (HAVE_CMAKE true)
 
 project (gen-shell)
 include (CXXSniffer)
 
-set (PROJECT_VERSION "0.0.1")
-
 include (CheckFunctionExists)
 include (CheckStructHasMember)
 include (CheckCXXCompilerFlag)
@@ -22,15 +19,8 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
 endif (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
 
 set (PACKAGE "${PROJECT_NAME}")
-set (VERSION "${PROJECT_VERSION}")
 set (PACKAGE_NAME "${PACKAGE}")
 set (PACKAGE_TARNAME "${PACKAGE}")
-set (PACKAGE_VERSION "${VERSION}")
-set (PACKAGE_STRING "${PACKAGE} ${VERSION}")
-
-SET (GEN-SHELL_DOCDIR  share/doc/gen-shell CACHE STRING "Installation directory for doc files")
-SET (GEN-SHELL_RCDIR "${GEN-SHELL_DOCDIR}/rc" CACHE STRING "Installation directory for configuration files")
-SET (GEN-SHELL bin                 CACHE STRING "Installation directory for the binary")
 
 # include the readline library finder module
 set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/Modules")
@@ -50,16 +40,3 @@ configure_file (
   ${CMAKE_SOURCE_DIR}/cmake.h)
 
 add_subdirectory (src)
-if (EXISTS ${CMAKE_SOURCE_DIR}/test)
-  add_subdirectory (test EXCLUDE_FROM_ALL)
-endif (EXISTS ${CMAKE_SOURCE_DIR}/test)
-
-# ---
-
-set (CPACK_SOURCE_GENERATOR "TGZ")
-set (CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION})
-set (CPACK_SOURCE_IGNORE_FILES  "CMakeCache" "CMakeFiles" "CPackConfig" "CPackSourceConfig"
-                                "_CPack_Packages" "cmake_install" "install_manifest" "Makefile$"
-                                "test" "package-config" "misc/*" "src/gen-shell$" "README.md"
-                                "/\\\\.gitignore" "/\\\\.git/" "swp$")
-include (CPack)