git-svn-id: svn://db.shs.com.ru/pip@966 12ceb7fc-bf1f-11e4-8940-5bc7170c53b5
This commit is contained in:
@@ -1,10 +1,14 @@
|
|||||||
cmake_minimum_required(VERSION 3.0)
|
cmake_minimum_required(VERSION 3.0)
|
||||||
|
cmake_policy(SET CMP0017 NEW) # need include() with .cmake
|
||||||
project(pip)
|
project(pip)
|
||||||
|
|
||||||
|
if ("x${CMAKE_MODULE_PATH}" STREQUAL "x")
|
||||||
|
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}/cmake")
|
||||||
|
endif()
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_BINARY_DIR})
|
||||||
set(PIP_BUILD 1)
|
set(PIP_BUILD 1)
|
||||||
include(CheckFunctionExists)
|
include(CheckFunctionExists)
|
||||||
include(PIPMacros.cmake)
|
include(PIPMacros)
|
||||||
|
|
||||||
set(_ICU_DEFAULT OFF)
|
set(_ICU_DEFAULT OFF)
|
||||||
if((NOT DEFINED WIN32) AND (NOT DEFINED ANDROID_PLATFORM) AND (NOT DEFINED APPLE))
|
if((NOT DEFINED WIN32) AND (NOT DEFINED ANDROID_PLATFORM) AND (NOT DEFINED APPLE))
|
||||||
@@ -86,7 +90,6 @@ else()
|
|||||||
message(STATUS "Building PIP shared library")
|
message(STATUS "Building PIP shared library")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}")
|
|
||||||
if(MINGW)
|
if(MINGW)
|
||||||
find_package(MinGW REQUIRED)
|
find_package(MinGW REQUIRED)
|
||||||
list(APPEND CMAKE_LIBRARY_PATH ${MINGW_LIB})
|
list(APPEND CMAKE_LIBRARY_PATH ${MINGW_LIB})
|
||||||
@@ -270,7 +273,7 @@ else()
|
|||||||
endif()
|
endif()
|
||||||
|
|
||||||
if (TESTS)
|
if (TESTS)
|
||||||
include(DownloadGTest.cmake)
|
include(DownloadGTest)
|
||||||
set(CONCURRENT_TESTS 1) #"Enable tests for concurrent library"
|
set(CONCURRENT_TESTS 1) #"Enable tests for concurrent library"
|
||||||
else()
|
else()
|
||||||
set(CONCURRENT_TESTS 0)
|
set(CONCURRENT_TESTS 0)
|
||||||
@@ -612,7 +615,7 @@ if(LIB)
|
|||||||
# Precompiled header
|
# Precompiled header
|
||||||
#add_custom_target(pip_pch ALL COMMAND ${CMAKE_CXX_COMPILER} -O2 -fPIC -g3 ${CMAKE_INSTALL_PREFIX}/include/pip/pip.h DEPENDS pip SOURCES ${HDRS})
|
#add_custom_target(pip_pch ALL COMMAND ${CMAKE_CXX_COMPILER} -O2 -fPIC -g3 ${CMAKE_INSTALL_PREFIX}/include/pip/pip.h DEPENDS pip SOURCES ${HDRS})
|
||||||
#list(APPEND HDRS "pip.h.gch")
|
#list(APPEND HDRS "pip.h.gch")
|
||||||
file(GLOB CMAKES "*.cmake")
|
file(GLOB CMAKES "cmake/*.cmake")
|
||||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||||
else()
|
else()
|
||||||
if(NOT PIP_FREERTOS)
|
if(NOT PIP_FREERTOS)
|
||||||
@@ -695,7 +698,7 @@ endif()
|
|||||||
# install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc)
|
# install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION share/doc)
|
||||||
# endif()
|
# endif()
|
||||||
if (NOT PIP_FREERTOS)
|
if (NOT PIP_FREERTOS)
|
||||||
include(PIPDocumentation.cmake)
|
include(PIPDocumentation)
|
||||||
find_package(Doxygen)
|
find_package(Doxygen)
|
||||||
if(DOXYGEN_FOUND)
|
if(DOXYGEN_FOUND)
|
||||||
set(DOXY_PROJECT_NUMBER "${_PIP_FULL_VERSION}")
|
set(DOXY_PROJECT_NUMBER "${_PIP_FULL_VERSION}")
|
||||||
|
|||||||
Reference in New Issue
Block a user