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

This commit is contained in:
2017-04-14 09:31:10 +00:00
parent ef0965d283
commit 652e912714
2 changed files with 28 additions and 27 deletions

View File

@@ -1,13 +1,14 @@
cmake_minimum_required(VERSION 2.6)
project(libs)
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/pip/")
if (MINGW)
if(MINGW)
find_package(MinGW REQUIRED)
endif ()
endif()
set(LIB 1)
set(USB 1)
set(ICU 1)
set(CRYPT 1)
set(FFTW 1)
set(LIBPROJECT 1)
set(PIP_LIBRARY pip)
set(PIP_FOLDERS "." "core" "containers" "thread" "system" "io" "console" "math" "code" "geo")
@@ -19,7 +20,7 @@ foreach(F ${PIP_FOLDERS})
endforeach(F)
#message(${PIP_INCLUDES})
set(PIP_CMG "${CMAKE_CURRENT_BINARY_DIR}/pip/utils/code_model_generator/pip_cmg")
if (WIN32)
if(WIN32)
set(PIP_DLL_DIR "${CMAKE_CURRENT_BINARY_DIR}/pip")
endif()
@@ -29,8 +30,8 @@ foreach(L ${LIST_LIBS})
include_directories(${L})
endforeach(L)
if (WIN32)
if(WIN32)
get_filename_component(QTDIR ${QT_QMAKE_EXECUTABLE} PATH)
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pip/libpip.dll" DESTINATION ${QTDIR})
install(FILES "FindMinGW.cmake" DESTINATION ${CMAKE_ROOT}/Modules)
endif ()
endif()