X-Git-Url: http://git.treefish.org/~alex/seamulator.git/blobdiff_plain/b23099025e3db2682b0260c0cef3a807fad136a8..114b763f99b178bfa8a5adc0b214a425914fdc31:/src/CMakeLists.txt diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index f859744..75990a0 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -1,17 +1,27 @@ 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(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 - ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} - ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR}) + ${OPENGL_INCLUDE_DIRS} ${GLUT_INCLUDE_DIRS} + ${FFTW_INCLUDES} ${Boost_INCLUDE_DIR} ${STK_INCLUDE_DIR} + ${ALSA_INCLUDE_DIRS}) 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} - ${FFTW_LIBRARIES} ${Boost_LIBRARIES}) + ${FFTW_LIBRARIES} ${Boost_LIBRARIES} + ${STK_LIBRARY} ${ALSA_LIBRARIES} ${}) + + +target_link_libraries(seamulator PRIVATE Threads::Threads)