sinesynth/CMakeLists.txt

18 lines
407 B
CMake
Raw Normal View History

2020-01-06 14:04:34 -08:00
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})