Commit Graph

26 Commits

Author SHA1 Message Date
Pascal Bach
f778e67430 CMake: Improve installation and package generation
Signed-off-by: Pascal Bach <pascal.bach@siemens.com>
2015-01-27 15:52:18 +01:00
Pascal Bach
b69fafb84c CMake: Create PocoConfig.cmake to make importable from other CMake projects
The generated PocoConfig.cmake can be used by other CMake projects using find_package.
2014-10-14 17:58:46 +02:00
Pascal Bach
7950001803 cmake: Cleanup CMakeLists.txt for all components
- Add missing CMakeLists.txt
- Use POCO_ macros to improve code structure in XCode/VisualStudio
- Better ODBC detection
- Remove unnecessary commented out code

The CMake documentation recommends explicitly listing source files, but because CMake is not the primary build system GLOB patterns are used for the moment.
2014-08-22 17:11:03 +02:00
Pascal Bach
0fd90ec722 cmake: Data cleanup
- explicitly list files
- use find_package for MySQL and ODBC
- remove unused code
- remove unnecessary include dirs
- support unbundled SQLite3
- replace tabs by spaces

Reviewed-by: Roger Meier <r.meier@siemens.com>
2014-07-10 09:15:06 +02:00
Josh Blum
f442148670 poco: library install dirs per RUNTIME/LIBRARY/ARCHIVE
For a unix system, this commit implies no changes by default. However, the ${LIB_SUFFIX} convention was added so the build can be configured for a red-hat style installation which uses lib64 by specifying cmake -DLIB_SUFFIX=64

For a windows build (msvc), this commit will cause the .dll files to be installed in the bin/ path; import libraries .lib are still installed in the lib/ path. Installing dlls into the bin path is preferable because dlls must be in the executable %PATH% to be found at runtime, as there is not equivalent of a separate library path as there is on unix.
2014-05-21 14:16:34 -07:00
Sergei Nikulov
dec6bc3918 cmake: added /bigobj option for msvc 2014-02-22 23:31:23 +04:00
Mathäus Mendel
dc9aafa7a1 Moved contributed CMake modules to "cmake" folder
By convention CMake project files are placed on a folder called "cmake" and then called from the build system by appending the CMAKE_MODULE_PATH variable
2012-12-16 00:40:40 -02:00
Mathäus Mendel
e3649153b8 Fixed build with CMake
Used CMAKE_DEBUG_POSTFIX instead LIB_EXT for library name decoration on debug builds (less intrusive and more flexible)
2012-12-08 15:54:38 -02:00
Aleksandar Fabijanic
5a639074d9 change EOL to 'native' 2012-04-29 18:52:25 +00:00
Aleksandar Fabijanic
d75e68c027 new trunk (base for 1.5)
windows build only
2012-04-23 01:14:34 +00:00
Aleksandar Fabijanic
f9b60296f7 removing old trunk files 2012-04-23 00:43:14 +00:00
Marian Krivos
218b06621d trunk: split cmake debug/optimize build 2 2012-01-08 19:10:15 +00:00
Marian Krivos
b59d198396 cmake build system cleanup 2012-01-08 09:37:13 +00:00
Marian Krivos
7cb622a445 trunk: split cmake debug/optimize build 2012-01-07 13:45:03 +00:00
Marian Krivos
eb266f8a57 Set cmake produced shared libraries numbering to standard scheme (trunk = 12)
Sync latest Foundation changes from 1.4.2
2011-09-15 08:31:51 +00:00
Marian Krivos
0ac146cb9e cmake improvements: test and samples are from now disabled by default, you can enable this option with cmdline option to cmake: '-DENABLE_TESTS=1'
minimum required CMAKE version is 2.6 from now
2011-01-22 11:46:03 +00:00
Marian Krivos
96b0296969 cmake + MinGW32: fix for ignored ODBC 2011-01-16 13:36:24 +00:00
Marian Krivos
c5b2daa36c cmake build system fix - debug version of ther library was striped and vice versa 2009-08-26 12:26:22 +00:00
Marian Krivos
56c8ac698e bugfix: #2809750 (iodbc on OSX) 2009-06-22 18:41:44 +00:00
Marian Krivos
1afd0a8328 bugfix #2781776 - cmake instals .svn directories 2009-04-27 19:22:30 +00:00
Marian Krivos
aaa3b1b274 Fix for 64bit linux - size_t isn't always Poco::UInt32 2009-03-08 18:57:55 +00:00
Marian Krivos
c4f6084c25 added last Poco module to cmake infrastructure - PocoODBC (working at least on linux32 + unixodbc + gcc 4.3.2) 2009-03-08 17:03:18 +00:00
Marian Krivos
ac01609444 cmake scripts for all tests 2009-02-21 20:19:53 +00:00
Marian Krivos
129f21cc79 added Data, Foundation, Net and Util samples + some global cmake fixes 2009-02-19 20:35:03 +00:00
Marian Krivos
16cdb4b127 cmake runtime install support (headers+libs) 2009-02-18 20:47:32 +00:00
Marian Krivos
5b320c2894 Very basic but functional (at least on linux with gcc) support
for CMake build system
. 
It is strongly recomended to use out-of-source build to preserve
original Poco makefiles.

http://www.cmake.org/Wiki/CMake_FAQ#Out-of-source_build_trees

I have tested unix makefile generating and Eclipse CDT4 generating.

Supported are static/dynamic and debug/release targets. 
On now only core libs are included: CppUnit, Foundation,
Data, Data/SQLite, Util, Net and XML. But autodetection
of OpenSSL, MySQL and ODBC is working OK already.

CPack and CTest nor library install still doesn't work, only building.

This is only the start.
2009-02-15 15:49:19 +00:00