Skip to content

Commit d8d2fe9

Browse files
committed
cmake file with install instructions
1 parent 065acb8 commit d8d2fe9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

CMakeLists.txt

+7-1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ if ( COMMAND cmake_policy )
3838
cmake_policy( SET CMP0003 NEW )
3939
endif()
4040

41+
set( CMAKE_BUILD_TYPE "Release")
42+
4143
# CGAL
4244
find_package( CGAL REQUIRED )
4345

@@ -73,7 +75,11 @@ include_directories( ${GDAL_INCLUDE_DIR} )
7375

7476
add_executable( prepair prepair.cpp )
7577

78+
set_property(TARGET prepair PROPERTY CXX_STANDARD 17)
79+
7680
add_to_cached_list( CGAL_EXECUTABLE_TARGETS prepair )
7781

7882
# Link to CGAL and third-party libraries
79-
target_link_libraries(prepair ${GDAL_LIBRARY} ${Boost_LIBRARIES})
83+
target_link_libraries(prepair ${GDAL_LIBRARY} ${Boost_LIBRARIES})
84+
85+
install(TARGETS prepair DESTINATION bin)

0 commit comments

Comments
 (0)