git-svn-id: svn://db.shs.com.ru/libs@887 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2020-03-23 14:08:28 +00:00
parent 782ac32cb7
commit 665578ace3
25 changed files with 119 additions and 121 deletions

View File

@@ -1,21 +1,15 @@
cmake_minimum_required(VERSION 3.0)
if (POLICY CMP0020)
cmake_policy(SET CMP0020 NEW)
endif()
if (POLICY CMP0011)
cmake_policy(SET CMP0011 NEW)
endif()
#if (POLICY CMP0017)
#cmake_policy(SET CMP0017 OLD)
#endif()
cmake_policy(SET CMP0011 NEW) # don`t affect includer policies
cmake_policy(SET CMP0017 NEW) # need include() with .cmake
cmake_policy(SET CMP0020 NEW) # Automatically link Qt executables to qtmain target on Windows
if (POLICY CMP0053)
cmake_policy(SET CMP0053 NEW)
cmake_policy(SET CMP0053 NEW) # simpler variable expansion and escape sequence evaluation rules
endif()
project(libs)
include(SDKMacros.cmake)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/pip/cmake" "${CMAKE_CURRENT_SOURCE_DIR}/qad/cmake")
include(SDKMacros)
set(CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS ON)
set(LIBPROJECT 1)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/pip/")
include_directories(${CMAKE_CURRENT_BINARY_DIR}/pip)
if(MINGW)
find_package(MinGW REQUIRED)
@@ -62,7 +56,6 @@ if (DEBUG)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g3")
endif ()
include(SDKMacros.cmake)
set(CMAKE_CXX_STANDARD 11)
set(PIP_LIBRARY pip)
@@ -107,7 +100,7 @@ endif()
set(QAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qad)
include(qad/QtWraps.cmake)
include(QtWraps)
find_qt(Core QUIET)
set(QtVersions)
set(SomeQtFound 0)
@@ -145,12 +138,13 @@ if (SomeQtFound)
foreach(_D ${_DIRS})
list(APPEND QT_MULTILIB_LIST ${_D})
endforeach(_D)
include_directories(piqt)
else()
message(STATUS "None of Qt found, skip Qt-derived targets")
endif()
include_directories(cd_utils)
list(INSERT _DIRS 0 cd_utils deploy_tool)
foreach(_D ${_DIRS})
include_directories(${_D})
add_subdirectory(${_D})
endforeach(_D)