sinesynth/CMakeLists.txt

23 lines
529 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()
2020-01-06 14:38:25 -08:00
find_package(Curses)
if (CURSES_FOUND)
include_directories(${CURSES_INCLUDE_DIRS})
endif()
set(SINESYNTH_LIBS ${PULSEAUDIO_LIBRARY} ${CURSES_LIBRARIES} pulse-simple tinfo)
2020-01-06 14:04:34 -08:00
file(GLOB SOURCES "src/*.cpp")
add_executable(sinesynth ${SOURCES})
target_link_libraries(sinesynth LINK_PUBLIC ${SINESYNTH_LIBS})