Skip to content

Commit

Permalink
Modernize CMake configuration
Browse files Browse the repository at this point in the history
Refactoring based on practices of the Modern CMake approach:

* Set project version based on `version.txt` spec.
* Build shared libraries by default.
* Build tools and `geos-config` script.
* Add make `check` target to run `ctest` (no dependencies).
* Move failing/overlarge tests into `failure` directory.
* Add target to deploy Config-module with installed targets:
  `GEOS::geos`, `GEOS::geos_c`.
* Add basic uninstall target
* Add basic client example configured with CMake to use GEOS targets.
  • Loading branch information
mloskot committed May 16, 2019
1 parent 2a6111a commit 1aedfca
Show file tree
Hide file tree
Showing 34 changed files with 628 additions and 1,039 deletions.
2 changes: 2 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ end_of_line = crlf
[CMakeLists.txt]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true

# CMake modules
[*.cmake]
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/*build*
/*install*
aclocal.m4
Makefile.in
Makefile
Expand Down
Loading

0 comments on commit 1aedfca

Please sign in to comment.