s2geometry
s2geometry copied to clipboard
Export include directories
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)
Done. Reopen this if it doesn't work for you.