[gecode-users] CMake config improvements

Christian Schulte cschulte at kth.se
Wed Sep 3 10:44:13 CEST 2014


Hi Victor,

 

Thanks. I will smuggle this into 4.3.0 as I have to rebuild the sourcepackages anyway (there are syntax errors in the changelog). It should be up in two hours or so.

 

Cheers

Christian

 

--

Christian Schulte, Professor of Computer Science, KTH, www.gecode.org/~schulte/

 

From: users-bounces at gecode.org [mailto:users-bounces at gecode.org] On Behalf Of victor.zverovich at gmail.com
Sent: Tuesday, September 02, 2014 8:57 PM
To: users at gecode.org
Subject: [gecode-users] CMake config improvements

 

Hello,

 

Please find attached a patch which implements the following changes to the CMake build configuration:

 

* Set the output directory for runtime target files (executables and DLLs) to bin/ subdirectory of the project's binary directory to avoid collisions when Gecode is used as a subproject.

 

* Improve suppression of warnings.

 

* Add GECODE_USE_QT variable which specifies whether to use Qt. Qt is used if GECODE_USE_QT is TRUE or unset.

 

* Prevent linker warnings on MSVC.

 

* Use per-target instead of global include directories. This simplifies use of Gecode as a subproject because add_target_libraries(<target> <gecode-lib>) now sets the necessary include directories for <target> in addition to link dependencies.

 

* Fix by Tony Kelman to fully link internal dependencies needed for creating DLLs: https://github.com/ampl/gecode/pull/2

 

Best regards,

Victor

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.gecode.org/pipermail/users/attachments/20140903/f7982ad8/attachment.html>


More information about the users mailing list