mirror of
https://github.com/pocoproject/poco.git
synced 2024-12-13 10:32:57 +01:00
trunk: cmake: added simple build script for building Release & Debug version at once
This commit is contained in:
parent
0a33514f33
commit
ac73265fb3
@ -82,11 +82,11 @@ ELSE ()
|
||||
message(STATUS "Building without tests & samples")
|
||||
ENDIF ()
|
||||
|
||||
IF (!POCO_UNBUNDLED)
|
||||
message(STATUS "Build with using internal copy of sqlite, libz, pcre, expat, ...")
|
||||
ELSE ()
|
||||
add_definitions( -DPOCO_UNBUNDLED)
|
||||
IF (POCO_UNBUNDLED)
|
||||
add_definitions( -DPOCO_UNBUNDLED)
|
||||
message(STATUS "Build with using external sqlite, libz, pcre, expat ...")
|
||||
ELSE ()
|
||||
message(STATUS "Build with using internal copy of sqlite, libz, pcre, expat, ...")
|
||||
ENDIF ()
|
||||
|
||||
# Set local include path
|
||||
@ -191,6 +191,7 @@ SET(CPACK_PACKAGE_INSTALL_DIRECTORY "/usr/local")
|
||||
INCLUDE(CPack)
|
||||
|
||||
message(STATUS "CMake ${CMAKE_VERSION} successfully configured ${PROJECT_NAME} using ${CMAKE_GENERATOR} generator")
|
||||
message(STATUS "Installation target path: ${CMAKE_INSTALL_PREFIX}")
|
||||
|
||||
message(STATUS "C_FLAGS: =${CMAKE_C_FLAGS}")
|
||||
message(STATUS "CXX_FLAGS:=${CMAKE_CXX_FLAGS}")
|
||||
|
22
build_cmake.sh
Executable file
22
build_cmake.sh
Executable file
@ -0,0 +1,22 @@
|
||||
#!/bin/bash
|
||||
|
||||
# POCO_STATIC=1 - for static build
|
||||
# POCO_UNBUNDLED - for no built-in version of libs
|
||||
# CMAKE_INSTALL_PREFIX=path - for install path
|
||||
|
||||
rm -rf cmake-build
|
||||
mkdir cmake-build
|
||||
cd cmake-build
|
||||
|
||||
cmake ../. -DCMAKE_BUILD_TYPE=Debug $1 $2 $3 $4 $5
|
||||
make -j3
|
||||
make install
|
||||
|
||||
rm -rf CMakeCache.txt
|
||||
|
||||
cmake ../. $1 $2 $3 $4 $5
|
||||
make -j3
|
||||
make install
|
||||
|
||||
|
||||
cd ..
|
Loading…
Reference in New Issue
Block a user