find_package(CGAL REQUIRED)
include(${CGAL_USE_FILE})

find_package(OpenMesh REQUIRED)
include_directories(${OPENMESH_INCLUDE_DIR})
link_directories(${OPENMESH_LIBRARY_DIR})

find_package(Mesquite REQUIRED)
include_directories(${MESQUITE_INCLUDE_DIR})
link_directories(${MESQUITE_LIBRARY_DIR})

set(CMAKE_CXX_FLAGS "-O3 -frounding-math -DOM_STATIC_BUILD -DNDEBUG")

add_executable(performance
  performance.cpp
  performance.h
  openmesh_performance.h
  cgal_performance.h
  surface_mesh_performance.h
  mesquite_performance.h
)

target_link_libraries(performance
  ${MESQUITE_LIBRARIES}
  ${CGAL_LIBRARIES}
  ${OPENMESH_LIBRARIES}
  surface_mesh
)

add_executable(mesquite_performance performance.h mesquite_performance.h mesquite_performance.cpp)
target_link_libraries(mesquite_performance ${MESQUITE_LIBRARIES})

add_executable(cgal_performance performance.h cgal_performance.h cgal_performance.cpp)
target_link_libraries(cgal_performance ${CGAL_LIBRARIES})

add_executable(openmesh_performance performance.h openmesh_performance.h openmesh_performance.cpp)
target_link_libraries(openmesh_performance ${OPENMESH_LIBRARIES})

add_executable(surface_mesh_performance performance.h surface_mesh_performance.h surface_mesh_performance.cpp)
target_link_libraries(surface_mesh_performance surface_mesh)

