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)
13 include_directories(${seamulator_SOURCE_DIR}/include
14 ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
15 ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR} ${STK_INCLUDE_DIR}
18 add_executable(seamulator seamulator.cpp
19 sea.cpp watersurface.cpp surfacepoint.cpp
20 seaview.cpp synthesizer.cpp dot.cpp)
22 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
23 ${FFTW_LIBRARIES} ${Boost_LIBRARIES}
24 ${STK_LIBRARY} ${ALSA_LIBRARIES} ${})
27 target_link_libraries(seamulator PRIVATE Threads::Threads)