Skip to content

Commit d550f52

Browse files
author
peng.li24
committed
example: rewrite with comprehensive 9-section demo covering all geometry types and operations
1 parent 37d5407 commit d550f52

2 files changed

Lines changed: 440 additions & 44 deletions

File tree

example/CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
cmake_minimum_required(VERSION 3.16)
22
project(shapelycpp_example LANGUAGES CXX)
33

4-
find_package(shapelycpp REQUIRED)
54
find_package(GEOS REQUIRED)
65

76
add_executable(example main.cpp)
8-
target_link_libraries(example PRIVATE shapelycpp::shapelycpp GEOS::geos_c)
7+
target_include_directories(example PRIVATE ${CMAKE_SOURCE_DIR}/..)
8+
target_link_libraries(example PRIVATE GEOS::geos)
9+
set_target_properties(example PROPERTIES
10+
CXX_STANDARD 17
11+
CXX_STANDARD_REQUIRED ON
12+
CXX_EXTENSIONS OFF
13+
)

0 commit comments

Comments
 (0)