mirror of
https://github.com/GothenburgBitFactory/taskshell.git
synced 2025-06-26 10:54:29 +02:00
CMake: Standardized CMakeLists.txt
This commit is contained in:
parent
1dd60ccffe
commit
841cce1370
2 changed files with 5 additions and 5 deletions
|
@ -1,8 +1,5 @@
|
||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8)
|
||||||
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
|
set(CMAKE_LEGACY_CYGWIN_WIN32 0) # Remove when CMake >= 2.8.4 is required
|
||||||
if(POLICY CMP0037)
|
|
||||||
cmake_policy(SET CMP0037 OLD)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
include (CheckFunctionExists)
|
include (CheckFunctionExists)
|
||||||
include (CheckStructHasMember)
|
include (CheckStructHasMember)
|
||||||
|
@ -66,7 +63,7 @@ endif (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||||
|
|
||||||
set (CMAKE_CXX_FLAGS "${_CXX11_FLAGS} ${CMAKE_CXX_FLAGS}")
|
set (CMAKE_CXX_FLAGS "${_CXX11_FLAGS} ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
set (CMAKE_CXX_FLAGS "-Wall -Wsign-compare -Wreturn-type ${CMAKE_CXX_FLAGS}")
|
set (CMAKE_CXX_FLAGS "-Wall -Wextra -Wsign-compare -Wreturn-type ${CMAKE_CXX_FLAGS}")
|
||||||
|
|
||||||
if (NETBSD)
|
if (NETBSD)
|
||||||
# Since readline, etc likely to be in /usr/pkg/lib, not standard library
|
# Since readline, etc likely to be in /usr/pkg/lib, not standard library
|
||||||
|
@ -146,5 +143,5 @@ set (CPACK_SOURCE_PACKAGE_FILE_NAME ${PACKAGE_NAME}-${PACKAGE_VERSION})
|
||||||
set (CPACK_SOURCE_IGNORE_FILES "CMakeCache" "CMakeFiles" "CPackConfig" "CPackSourceConfig"
|
set (CPACK_SOURCE_IGNORE_FILES "CMakeCache" "CMakeFiles" "CPackConfig" "CPackSourceConfig"
|
||||||
"_CPack_Packages" "cmake_install" "install_manifest" "Makefile$"
|
"_CPack_Packages" "cmake_install" "install_manifest" "Makefile$"
|
||||||
"test" "package-config" "misc/*" "src/tasksh$"
|
"test" "package-config" "misc/*" "src/tasksh$"
|
||||||
"/\\.gitignore" "/\\.git/" "swp$")
|
"/\\\\.gitignore" "/\\\\.git/" "swp$")
|
||||||
include (CPack)
|
include (CPack)
|
||||||
|
|
|
@ -1,4 +1,7 @@
|
||||||
cmake_minimum_required (VERSION 2.8)
|
cmake_minimum_required (VERSION 2.8)
|
||||||
|
if(POLICY CMP0037)
|
||||||
|
cmake_policy(SET CMP0037 OLD)
|
||||||
|
endif()
|
||||||
include_directories (${CMAKE_SOURCE_DIR}
|
include_directories (${CMAKE_SOURCE_DIR}
|
||||||
${CMAKE_SOURCE_DIR}/src
|
${CMAKE_SOURCE_DIR}/src
|
||||||
${CMAKE_SOURCE_DIR}/test
|
${CMAKE_SOURCE_DIR}/test
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue