new cmake build

git-svn-id: svn://db.shs.com.ru/libs@90 a8b55f48-bf90-11e4-a774-851b48703e85
This commit is contained in:
2016-04-16 17:35:03 +00:00
parent cb7ed641f8
commit 4a3c8292f1
104 changed files with 436 additions and 394 deletions

View File

@@ -1,13 +1,17 @@
project(piqt)
cmake_minimum_required(VERSION 2.6)
option(LIB "System install" 0)
file(GLOB HDRS "./*.h")
if (DEFINED LIB)
set(LIB 1)
if (${WIN32})
find_package(MinGW REQUIRED)
if (LIB)
if (WIN32)
if (MINGW)
find_package(MinGW REQUIRED)
endif()
set(CMAKE_INSTALL_PREFIX ${MINGW_DIR})
install(FILES ${HDRS} DESTINATION ${MINGW_INCLUDE})
else ()
set(CMAKE_INSTALL_PREFIX /usr)
install(FILES ${HDRS} DESTINATION ${CMAKE_INSTALL_PREFIX}/include)
endif ()
message(STATUS "Install to system \"${CMAKE_INSTALL_PREFIX}\"")
endif ()

View File

@@ -1 +1 @@
cmake_mgw -DLIB= && make install %*
cmake -G "MinGW Makefiles" -DLIB=1 && make install . %*