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

This commit is contained in:
2017-05-12 12:10:48 +00:00
parent d5218d7c4a
commit e6112cdb96
337 changed files with 26799 additions and 251 deletions

View File

@@ -5,14 +5,31 @@ if(MINGW)
find_package(MinGW REQUIRED)
endif()
set(LIB 1)
set(LIBPROJECT 1)
set(PULT 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")
set(PIP_INCLUDES)
if (LIB)
if (WIN32)
set(CMAKE_INSTALL_PREFIX ${MINGW_DIR})
else ()
if(APPLE)
set(CMAKE_INSTALL_PREFIX /usr/local)
else()
set(CMAKE_INSTALL_PREFIX /usr)
endif()
endif ()
message(STATUS "Install to system \"${CMAKE_INSTALL_PREFIX}\"")
else ()
message(STATUS "Install to local \"bin\"")
endif ()
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=native")
#set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=native")
foreach(F ${PIP_FOLDERS})
@@ -24,17 +41,21 @@ if(WIN32)
set(PIP_DLL_DIR "${CMAKE_CURRENT_BINARY_DIR}/pip")
endif()
set(LIST_LIBS pip qad_utils qad_widgets qad_application qad_blockview qad_graphic qad_sql_table piqt cd_utils qcd_utils kx_utils piqt_utils touch_widgets qglview)
#set(LIST_LIBS pip)
foreach(L ${LIST_LIBS})
add_subdirectory(${L})
include_directories(${L})
endforeach(L)
set(QAD_DIR ${CMAKE_CURRENT_SOURCE_DIR}/qad)
add_subdirectory(pip)
add_subdirectory(qad)
set(_DIRS piqt piqt_utils cd_utils qcd_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})
endforeach()
install(FILES "FindMinGW.cmake" DESTINATION ${CMAKE_ROOT}/Modules)
set(CMAKES "FindMinGW.cmake" "QtProject.cmake")
install(FILES ${CMAKES} DESTINATION ${CMAKE_ROOT}/Modules)
endif()