Skip to content

Commit

Permalink
cmake file with install instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
kenohori committed Sep 26, 2022
1 parent 065acb8 commit d8d2fe9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ if ( COMMAND cmake_policy )
cmake_policy( SET CMP0003 NEW )
endif()

set( CMAKE_BUILD_TYPE "Release")

# CGAL
find_package( CGAL REQUIRED )

Expand Down Expand Up @@ -73,7 +75,11 @@ include_directories( ${GDAL_INCLUDE_DIR} )

add_executable( prepair prepair.cpp )

set_property(TARGET prepair PROPERTY CXX_STANDARD 17)

add_to_cached_list( CGAL_EXECUTABLE_TARGETS prepair )

# Link to CGAL and third-party libraries
target_link_libraries(prepair ${GDAL_LIBRARY} ${Boost_LIBRARIES})
target_link_libraries(prepair ${GDAL_LIBRARY} ${Boost_LIBRARIES})

install(TARGETS prepair DESTINATION bin)

0 comments on commit d8d2fe9

Please sign in to comment.