]> git.armaanb.net Git - gen-shell.git/blobdiff - CMakeLists.txt
made usable!
[gen-shell.git] / CMakeLists.txt
index 01081a809f8a0d896a9ce33e01423c8a31cc1ac4..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)
@@ -18,21 +15,12 @@ if (EXISTS ${CMAKE_SOURCE_DIR}/.git/index)
   execute_process (COMMAND git log -1 --pretty=format:%h
                    WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}
                    OUTPUT_VARIABLE COMMIT)
-  configure_file ( ${CMAKE_SOURCE_DIR}/commit.h.in
-                   ${CMAKE_SOURCE_DIR}/commit.h)
-  message ("-- Found SHA1 reference: ${COMMIT}")
+ message ("-- Found SHA1 reference: ${COMMIT}")
 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")
@@ -52,22 +40,3 @@ configure_file (
   ${CMAKE_SOURCE_DIR}/cmake.h)
 
 add_subdirectory (src)
-add_subdirectory (doc)
-if (EXISTS ${CMAKE_SOURCE_DIR}/test)
-  add_subdirectory (test EXCLUDE_FROM_ALL)
-endif (EXISTS ${CMAKE_SOURCE_DIR}/test)
-
-set (doc_FILES NEWS ChangeLog INSTALL AUTHORS COPYING)
-foreach (doc_FILE ${doc_FILES})
-  install (FILES ${doc_FILE}  DESTINATION ${GEN-SHELL_DOCDIR})
-endforeach (doc_FILE)
-
-# ---
-
-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)