cmake (was Re: [geos-devel] 3.0?)

=?GB2312?B?y++439PC?= sungaoyong at gmail.com
Mon Sep 4 02:51:49 EDT 2006


yes cmake can do this,i have used cmake shortly¡£and still in studing . i
think those code can do this.
if(MSVC60)
    set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC60)
    set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC60)
    #(set where executables and libraries go)
ENDIF(MSVC60)

if(MSVC70)
    set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC70)
    set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC70)
    #(set where executables and libraries go)
ENDIF(MSVC70)

if(MSVC71)
    set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC71)
    set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC71)
    #(set where executables and libraries go)
ENDIF(MSVC71)

if(MSVC80)
    set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC80)
    set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MSVC80)
    #(set where executables and libraries go)
ENDIF(MSVC80)

IF(MINGW)
     set(EXECUTABLE_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MINGW)
     set(LIBRARY_OUTPUT_PATH ${GEOS_SOURCE_DIR}/MINGW)
    #(set where executables and libraries go)
ENDIF(MINGW)



On 9/4/06, Mateusz Loskot <mateusz at loskot.net> wrote:
>
> Ëï¸ßÓ wrote:
> > #   CMakeLists.txt for geos 3.0 by sungaoyong
> > #   2006-09-04 sungaoyong at gmail.com <mailto:sungaoyong at gmail.com>
> > #     Building on Cmake 2.4
> > #     ------------------------------------
> > #   test on windows mingw32 g++ 3.4.2¡¢msvc 2003,linux g++ 4.1
> > #   hope it's usefull
>
>
> Hi,
>
> First, I'd like to thank you on behalf of GEOS team for
> this contribution!
>
> I also run it with success!
> I use Linux (Ubuntu 6.06) + gcc 4.0.3 + cmake 2.4.3 (compiled
> from sources)
>
> Here are binaries generated by cmake:
> libgeos_i.a
> libgeos.so
> TestSweepLineSpeed
>
> Is it possible to put CMakeLists.txt file outside the 'source' tree?
> For example, to <GEOS ROOT>/build/cmake
>
> cmake generates Makefile on the same level as automake, so
> I'd suggest to put cmake outside the tree to avoid potential
> conflicts with autotools (some problems may be unknown at the moment).
>
> Is this possible to use cmake thisway?
>
>
> Sandro,
>
> What do you think about creating 'build' directory for other, additional
> build systems?
> There we could store: Visual C++ files, cmake files, etc.
>
> Here is my proposal:
> <GEOS>/build/cmake
> <GEOS>/build/msvc71
> <GEOS>/build/msvc80
> <GEOS>/build/...
>
> By the way, cmake may generate Visual C++ projects for
> us, so it may be helpful to keep them up to date:
> http://www.cmake.org/HTML/Features.html
>
> Cheers
> --
> Mateusz Loskot
> http://mateusz.loskot.net
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/geos-devel/attachments/20060904/50a972cf/attachment.html


More information about the geos-devel mailing list