[CMake] Using CMake for a library with many different buildoptions...

Reinhold Füreder R.Fureder at exeter.ac.uk
Mon Dec 20 05:12:16 EST 2004


Dear Hajo,

As far as I know the generation of makefiles and/or Visual Studio
Project files re-usable on different computers does not work IN GENERAL.
The reason is that the generated files are dependent on your local
platform AND are using mostly (?) full path information. So the target
platform would require exactly the same settings, installation path,
etc.

Please correct me if I am wrong,
	Reinhold

> -----Original Message-----
> From: cmake-bounces at www.cmake.org 
> [mailto:cmake-bounces at www.cmake.org] On Behalf Of Hajo Kirchhoff
> Sent: Sunday, December 19, 2004 9:36 PM
> To: cmake at www.cmake.org
> Subject: [CMake] Using CMake for a library with many 
> different buildoptions...
> 
> 
> Hello all,
> 
> I am trying to find out if CMake is the right buildfile 
> generation tool for my open source "Lit Window Library" 
www.litwindow.com/library (see .sig).

Rather than requiring users to download CMake I would like to distribute
makefiles and Visual Studio Project files which I generate on my system.
I'd like to distribute the files at least for MS-Visual Studio. Linux
users are more used to CMake-like tools, but Visual Studio users are
not.

My question is: The library has three different build parameters, debug
vs. release, static vs. dll and ansi vs. unicode build. Ideally I'd like
CMake to generate one Visual Studio Project file with 8 different
configurations for all the possible permutations: static debug ansi ...
to ... dll release unicode.

Is this possible somehow with CMake? Has anyone done something similar?
Or what would be your suggestions?

I'd be very grateful for any help/pointers.

Best regards

Hajo Kirchhoff

----------------------------------------------------------
Lit Window Library - Speed up GUI coding 10x
  http://www.litwindow.com/library?src=ml

wxVisualSetup - integrate wxWidgets into Visual Studio .NET
  http://www.litwindow.com/Products/products.html?src=ml

BugLister - Defect Tracker
  http://www.litwindow.com/buglister?src=ml

Tips & Tricks for wxWidgets & MS Visual Studio
  http://www.litwindow.com/Knowhow/knowhow.html?src=ml
----------------------------------------------------------


_______________________________________________
CMake mailing list
CMake at www.cmake.org
http://www.cmake.org/mailman/listinfo/cmake



More information about the CMake mailing list