]> git.treefish.org Git - seamulator.git/blob - src/CMakeLists.txt
41c3754e5f815f8ea0671a66f0b4f89ee626de14
[seamulator.git] / src / CMakeLists.txt
1 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
2
3 add_definitions(-D__LINUX_ALSA__ -D__LITTLE_ENDIAN__)
4
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)
13
14 include_directories(${seamulator_SOURCE_DIR}/include
15                     ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
16                     ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR} ${STK_INCLUDE_DIR}
17                     ${ALSA_INCLUDE_DIRS})
18
19 add_executable(seamulator seamulator.cpp
20                           sea.cpp watersurface.cpp surfacepoint.cpp
21                           seaview.cpp synthesizer.cpp dot.cpp)
22
23 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
24                                  ${FFTW_LIBRARIES} ${Boost_LIBRARIES}
25                                  ${STK_LIBRARY} ${ALSA_LIBRARIES} Eigen3::Eigen)
26
27
28 target_link_libraries(seamulator PRIVATE Threads::Threads)