This repository has been archived on 2020-09-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
libs/CMakeLists.txt

27 lines
929 B
CMake

cmake_minimum_required(VERSION 2.6)
project(libs)
if (MINGW)
set(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR})
find_package(MinGW REQUIRED)
endif ()
set(LIB 1)
set(USB 1)
set(ICU 1)
set(CRYPT 1)
set(LIBPROJECT 1)
set(PIP_LIBRARY pip)
set(PIP_FOLDERS "." "core" "containers" "thread" "system" "io" "console" "math" "code" "geo")
foreach(F ${PIP_FOLDERS})
set(PIP_INCLUDES ${PIP_INCLUDES} "../pip/src/${F}")
endforeach(F)
set(LIST_LIBS pip qad_widgets qad_utils qad_application qad_blockview qad_graphic qad_sql_table piqt mbricks cd_utils kx_utils piqt_utils touch_widgets qglview)
foreach(L ${LIST_LIBS})
add_subdirectory(${L})
include_directories(${L})
endforeach(L)
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 ()