project(Surface_mesh_performance) cmake_minimum_required(VERSION 2.8.11) find_package(CGAL REQUIRED) include(${CGAL_USE_FILE}) include_directories(BEFORE "../include") # For profilling with gprof #add_definitions("-pg") #SET(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -pg") # add_definitions("-g") add_definitions("-std=c++11") # Polyhedron add_executable(polyhedron_performance performance_2.h polyhedron_performance.h polyhedron_performance.cpp) target_link_libraries(polyhedron_performance ${CGAL_LIBRARIES}) # LCC_2 add_executable(lcc_performance_2 performance_2.h lcc_performance_2.h lcc_performance_2.cpp) target_link_libraries(lcc_performance_2 ${CGAL_LIBRARIES}) # Surface_mesh add_executable(surface_mesh_performance performance_2.h surface_mesh_performance.h surface_mesh_performance.cpp) # Performance_2 add_executable(performance_2 performance_2.cpp performance_2.h polyhedron_performance.h surface_mesh_performance.h lcc_performance_2.h ) target_link_libraries(performance_2 ${CGAL_LIBRARIES}) include( CGAL_CreateSingleSourceCGALProgram ) create_single_source_cgal_program( "sm_sms.cpp" ) create_single_source_cgal_program( "poly_sms.cpp" )