1 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
3 find_package(OpenGL REQUIRED)
4 find_package(GLUT REQUIRED)
5 find_package(fftw3 REQUIRED)
6 find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
8 include_directories(${seamulator_SOURCE_DIR}/include
9 ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
10 ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR})
12 add_executable(seamulator seamulator.cpp
13 sea.cpp watersurface.cpp surfacepoint.cpp
16 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
17 ${FFTW_LIBRARIES} ${Boost_LIBRARIES})