sinesynth/CMakeLists.txt

18 lines
407 B
CMake

cmake_minimum_required(VERSION 2.6)
project(sinesynth)
set(CMAKE_CXX_STANDARD 11)
include_directories(include)
find_package(PulseAudio)
if(PULSEAUDIO_FOUND)
include_directories(${PULSEAUDIO_INCLUDE_DIR})
endif()
set(SINESYNTH_LIBS ${PULSEAUDIO_LIBRARY} pulse-simple)
file(GLOB SOURCES "src/*.cpp")
add_executable(sinesynth ${SOURCES})
target_link_libraries(sinesynth LINK_PUBLIC ${SINESYNTH_LIBS})