[geos-commits] [SCM] GEOS branch master updated. 2084a8033f1644460bc832b84e3a3d30174658ce

git at osgeo.org git at osgeo.org
Wed May 29 10:40:57 PDT 2019


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GEOS".

The branch, master has been updated
       via  2084a8033f1644460bc832b84e3a3d30174658ce (commit)
      from  5669633c493aff845ad0cd3f5e0d7e61ae9fda74 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit 2084a8033f1644460bc832b84e3a3d30174658ce
Author: Daniel Baston <dbaston at gmail.com>
Date:   Wed May 29 12:33:22 2019 -0400

    [CMake] Add target for doc/example.cpp
    
    Important to make sure example still compiles after C++ API changes.
    Resolves #901.

diff --git a/CMakeLists.txt b/CMakeLists.txt
index 91aac43..1f9b71b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -244,6 +244,11 @@ endif()
 add_subdirectory(benchmarks)
 
 #-----------------------------------------------------------------------------
+# Documentation/Examples
+#-----------------------------------------------------------------------------
+add_subdirectory(doc)
+
+#-----------------------------------------------------------------------------
 # Install and export targets - support 'make install' or equivalent
 #-----------------------------------------------------------------------------
 include(CMakePackageConfigHelpers)
diff --git a/doc/CMakeLists.txt b/doc/CMakeLists.txt
new file mode 100644
index 0000000..f2295fe
--- /dev/null
+++ b/doc/CMakeLists.txt
@@ -0,0 +1,17 @@
+################################################################################
+# Part of CMake configuration for GEOS
+#
+# Copyright (C) 2018 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.
+################################################################################
+
+add_executable(example example.cpp)
+
+target_link_libraries(example PRIVATE geos)
+target_include_directories(test_geos_unit
+        PRIVATE
+        $<BUILD_INTERFACE:${CMAKE_CURRENT_LIST_DIR}>)

-----------------------------------------------------------------------

Summary of changes:
 CMakeLists.txt                     |  5 +++++
 {benchmarks => doc}/CMakeLists.txt | 10 ++++++----
 2 files changed, 11 insertions(+), 4 deletions(-)
 copy {benchmarks => doc}/CMakeLists.txt (71%)


hooks/post-receive
-- 
GEOS


More information about the geos-commits mailing list