s2geometry icon indicating copy to clipboard operation
s2geometry copied to clipboard

Export include directories

Open andreaskipf opened this issue 8 years ago • 1 comments

Adding the following line to CMakeLists.txt

target_include_directories(s2 PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/src)

would allow to seamlessly include S2 in a different CMake project like this:

list(APPEND CMAKE_MODULE_PATH "<path_to_s2geometry_folder>/third_party/cmake")
add_subdirectory(<path_to_s2geometry_folder> s2geometry)
target_link_libraries(<target_name> s2)

andreaskipf avatar Feb 02 '18 10:02 andreaskipf

Done. Reopen this if it doesn't work for you.

jmr avatar Feb 02 '18 19:02 jmr