21 lines
639 B
CMake
21 lines
639 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
SET(APP_NAME wfr)
|
|
|
|
project(${APP_NAME})
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
add_executable(${APP_NAME} main.cpp src/ALSADevice.cpp src/ALSADevice.h src/MemoryPool.cpp src/MemoryPool.h utils/Semaphore.h utils/Semaphore.cpp src/SampleWriter.h src/Timestamp.h
|
|
#src/SampleReceiver.h
|
|
src/audio_types.h)
|
|
|
|
find_package(Threads REQUIRED)
|
|
if (THREADS_FOUND)
|
|
target_link_libraries(${APP_NAME} Threads::Threads)
|
|
endif (THREADS_FOUND)
|
|
|
|
find_package(ALSA REQUIRED)
|
|
if (ALSA_FOUND)
|
|
include_directories(${ALSA_INCLUDE_DIRS})
|
|
target_link_libraries(${APP_NAME} ${ALSA_LIBRARIES})
|
|
endif (ALSA_FOUND) |