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() find_package(Curses) if (CURSES_FOUND) include_directories(${CURSES_INCLUDE_DIRS}) endif() set(SINESYNTH_LIBS ${PULSEAUDIO_LIBRARY} ${CURSES_LIBRARIES} pulse-simple tinfo) file(GLOB SOURCES "src/*.cpp") add_executable(sinesynth ${SOURCES}) target_link_libraries(sinesynth LINK_PUBLIC ${SINESYNTH_LIBS})