git-svn-id: svn://db.shs.com.ru/libs@5 a8b55f48-bf90-11e4-a774-851b48703e85
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
cmake_minimum_required(VERSION 2.6)
|
|
project(libs)
|
|
#set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g3)
|
|
if (${WIN32})
|
|
find_package(MinGW REQUIRED)
|
|
endif (${WIN32})
|
|
find_package(Qt REQUIRED)
|
|
set(LIB 1)
|
|
set(ICU 1)
|
|
set(LIBPROJECT 1)
|
|
set(PIP_LIBRARY pip)
|
|
set(PIP_FOLDERS "." "core" "containers" "thread" "system" "io" "console" "math" "code")
|
|
|
|
foreach(F ${PIP_FOLDERS})
|
|
set(PIP_INCLUDES ${PIP_INCLUDES} "../pip/src/${F}")
|
|
endforeach(F)
|
|
#message(STATUS "PIP includes = ${PIP_INCLUDES}")
|
|
|
|
set(LIST_LIBS pip qad_widgets qad_utils qad_application qad_blockview qad_graphic qad_sql_table piqt mbricks kx_tools piqt_tools qglview touch_widgets)
|
|
|
|
foreach(L ${LIST_LIBS})
|
|
add_subdirectory(${L})
|
|
include_directories(${L})
|
|
endforeach(L)
|
|
|
|
if (${WIN32})
|
|
get_filename_component(QTDIR ${QT_QMAKE_EXECUTABLE} PATH)
|
|
install(FILES "pip/libpip.dll" DESTINATION ${QTDIR})
|
|
install(FILES "piqt_tools/libpiqt_utils.dll" DESTINATION ${QTDIR})
|
|
install(FILES "FindMinGW.cmake" DESTINATION ${CMAKE_ROOT}/Modules)
|
|
endif (${WIN32})
|