X-Git-Url: https://git.armaanb.net/?p=gen-shell.git;a=blobdiff_plain;f=CMakeLists.txt;h=40a3ead3d04728423b0fb96c42e628c59e323f66;hp=a7661e4c32d7b42873e87cd3ea837ac531bb445f;hb=28d8445c8c2c2e1b1a30ddef30fc9c5555645aeb;hpb=fceb27bfab238cbc5d1f2498b7c2b2e7bb871ba4 diff --git a/CMakeLists.txt b/CMakeLists.txt index a7661e4..40a3ead 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)