[geos-commits] r2852 - in trunk: . capi src

svn_geos at osgeo.org svn_geos at osgeo.org
Sat Jan 16 12:03:37 EST 2010


Author: mloskot
Date: 2010-01-16 12:03:36 -0500 (Sat, 16 Jan 2010)
New Revision: 2852

Added:
   trunk/CMakeLists.txt
   trunk/capi/CMakeLists.txt
   trunk/src/CMakeLists.txt
Log:
Added first straps of configuration for CMake build system (#317)

Added: trunk/CMakeLists.txt
===================================================================
--- trunk/CMakeLists.txt	                        (rev 0)
+++ trunk/CMakeLists.txt	2010-01-16 17:03:36 UTC (rev 2852)
@@ -0,0 +1,25 @@
+#################################################################################
+# $Id$
+#
+# Main GEOS build configuration file for CMake build system
+#
+# Copyright (C) 2009 Mateusz Loskot <mateusz at loskot.net>
+#
+# This is free software; you can redistribute and/or modify it under
+# the terms of the GNU Lesser General Public Licence as published
+# by the Free Software Foundation. 
+# See the COPYING file for more information.
+#
+#################################################################################
+project(geos)
+cmake_minimum_required(VERSION 2.6)
+
+#set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
+
+if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pedantic -Wall -Wno-long-long -ansi")
+  set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
+endif()
+
+add_subdirectory(src)
+add_subdirectory(capi)

Added: trunk/capi/CMakeLists.txt
===================================================================
--- trunk/capi/CMakeLists.txt	                        (rev 0)
+++ trunk/capi/CMakeLists.txt	2010-01-16 17:03:36 UTC (rev 2852)
@@ -0,0 +1,22 @@
+#################################################################################
+# $Id$
+#
+# GEOS C library build configuration for CMake build system
+#
+# Copyright (C) 2009 Mateusz Loskot <mateusz at loskot.net>
+#
+# This is free software; you can redistribute and/or modify it under
+# the terms of the GNU Lesser General Public Licence as published
+# by the Free Software Foundation. 
+# See the COPYING file for more information.
+#
+#################################################################################
+include_directories(${CMAKE_SOURCE_DIR}/include)
+
+set(geos_c_SOURCES
+  geos_c.cpp
+  geos_ts_c.cpp)
+
+add_library(geos_c SHARED ${geos_c_SOURCES})
+
+target_link_libraries(geos_c geos)
\ No newline at end of file

Added: trunk/src/CMakeLists.txt
===================================================================
--- trunk/src/CMakeLists.txt	                        (rev 0)
+++ trunk/src/CMakeLists.txt	2010-01-16 17:03:36 UTC (rev 2852)
@@ -0,0 +1,18 @@
+#################################################################################
+# $Id$
+#
+# GEOS C++ library build configuration for CMake build system
+#
+# Copyright (C) 2009 Mateusz Loskot <mateusz at loskot.net>
+#
+# This is free software; you can redistribute and/or modify it under
+# the terms of the GNU Lesser General Public Licence as published
+# by the Free Software Foundation. 
+# See the COPYING file for more information.
+#
+#################################################################################
+include_directories(${CMAKE_SOURCE_DIR}/include)
+
+file(GLOB_RECURSE geos_SOURCES ${CMAKE_CURRENT_SOURCE_DIR}/*.cpp)
+
+add_library(geos STATIC ${geos_SOURCES})



More information about the geos-commits mailing list