]> git.treefish.org Git - seamulator.git/blobdiff - src/CMakeLists.txt
place plucks at random positions
[seamulator.git] / src / CMakeLists.txt
index 75b9bcba13caea14690753ff769801c9272ca71f..75990a0ab0033f2764f255f5a5c31ea83349d8bf 100644 (file)
@@ -1,16 +1,27 @@
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
 
 set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
 
+add_definitions(-D__LINUX_ALSA__ -D__LITTLE_ENDIAN__)
+
 find_package(OpenGL REQUIRED)
 find_package(GLUT REQUIRED)
 find_package(fftw3 REQUIRED)
 find_package(OpenGL REQUIRED)
 find_package(GLUT REQUIRED)
 find_package(fftw3 REQUIRED)
+find_package(STK REQUIRED)
+find_package(Boost 1.40 COMPONENTS program_options REQUIRED)
+find_package(ALSA REQUIRED)
+find_package(Threads REQUIRED)
 
 include_directories(${seamulator_SOURCE_DIR}/include
 
 include_directories(${seamulator_SOURCE_DIR}/include
-                   ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
-                   ${FFTW_INCLUDES})
+                    ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS}
+                    ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR} ${STK_INCLUDE_DIR}
+                    ${ALSA_INCLUDE_DIRS})
 
 add_executable(seamulator seamulator.cpp
 
 add_executable(seamulator seamulator.cpp
-                         sea.cpp watersurface.cpp surfacepoint.cpp
-                         seaview.cpp)
+                          sea.cpp watersurface.cpp surfacepoint.cpp
+                          seaview.cpp synthesizer.cpp dot.cpp)
 
 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
 
 target_link_libraries(seamulator ${OPENGL_LIBRARIES} ${GLUT_LIBRARY}
-                                ${FFTW_LIBRARIES})
+                                 ${FFTW_LIBRARIES} ${Boost_LIBRARIES}
+                                 ${STK_LIBRARY} ${ALSA_LIBRARIES} ${})
+
+
+target_link_libraries(seamulator PRIVATE Threads::Threads)