Multi-Qt building
git-svn-id: svn://db.shs.com.ru/libs@250 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
@@ -2,7 +2,7 @@ cmake_minimum_required(VERSION 2.6)
|
||||
project(libs)
|
||||
set(LIBPROJECT 1)
|
||||
set(CMAKE_MODULE_PATH "${CMAKE_CURRENT_SOURCE_DIR}" "${CMAKE_CURRENT_SOURCE_DIR}/pip/")
|
||||
cmake_policy(SET CMP0017 OLD)
|
||||
#cmake_policy(SET CMP0017 OLD)
|
||||
if(MINGW)
|
||||
find_package(MinGW REQUIRED)
|
||||
endif()
|
||||
@@ -48,21 +48,35 @@ endif()
|
||||
|
||||
set(QAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qad)
|
||||
|
||||
include(qad/QtWraps.cmake)
|
||||
set(QtVersions)
|
||||
foreach(_v ${_QT_VERSIONS_})
|
||||
option(Qt${_v} "Build for Qt${_v}" 1)
|
||||
if (Qt${_v})
|
||||
#message("Qt${_v}")
|
||||
list(APPEND QtVersions Qt${_v})
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
add_subdirectory(pip)
|
||||
message(STATUS "Building Qt-derived targets for ${QtVersions}")
|
||||
add_subdirectory(qad)
|
||||
set(_DIRS piqt piqt_utils cd_utils qcd_utils)
|
||||
set(_DIRS piqt piqt_utils qcd_utils)
|
||||
if (QGLVIEW)
|
||||
list(APPEND _DIRS qglview)
|
||||
endif()
|
||||
foreach(_D ${_DIRS})
|
||||
list(APPEND QT_MULTILIB_LIST ${D})
|
||||
endforeach(_D)
|
||||
list(INSERT _DIRS 0 cd_utils)
|
||||
foreach(_D ${_DIRS})
|
||||
include_directories(${_D})
|
||||
add_subdirectory(${_D})
|
||||
endforeach(_D)
|
||||
|
||||
if(WIN32)
|
||||
get_filename_component(QTDIR ${QT_QMAKE_EXECUTABLE} PATH)
|
||||
foreach(PIP_LT ${PIP_LIBS_TARGETS})
|
||||
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pip/lib${PIP_LT}.dll" DESTINATION ${QTDIR})
|
||||
qt_install(FILES "${CMAKE_CURRENT_BINARY_DIR}/pip/lib${PIP_LT}.dll" DESTINATION QtBin)
|
||||
endforeach()
|
||||
set(CMAKES "FindMinGW.cmake")
|
||||
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
|
||||
|
||||
Reference in New Issue
Block a user