1 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
3 add_definitions(-D__LINUX_ALSA__ -D__LITTLE_ENDIAN__)
5 find_package(OpenGL REQUIRED)
6 find_package(GLUT REQUIRED)
7 find_package(fftw3 REQUIRED)
8 find_package(STK REQUIRED)
9 find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
10 find_package(ALSA REQUIRED)
11 find_package(Threads REQUIRED)
12 find_package(Eigen3 3.3 REQUIRED NO_MODULE)
14 include_directories(${seamulator_SOURCE_DIR}/include
15 ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
16 ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR} ${STK_INCLUDE_DIR}
19 add_executable(seamulator seamulator.cpp
20 sea.cpp watersurface.cpp surfacepoint.cpp
21 seaview.cpp synthesizer.cpp dot.cpp)
23 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES}
24 ${FFTW_LIBRARIES} ${Boost_LIBRARIES}
25 ${STK_LIBRARY} ${ALSA_LIBRARIES} Eigen3::Eigen)
28 target_link_libraries(seamulator PRIVATE Threads::Threads)