-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathCMakeLists.txt
24 lines (21 loc) · 1.67 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
cmake_minimum_required(VERSION 3.7)
project(scriptable-guitar-pedal)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake")
find_package(Ne10 REQUIRED)
find_package(CivetWeb REQUIRED)
find_package(LibSndFile REQUIRED)
find_package(LibI2C REQUIRED)
find_package(Lua REQUIRED)
find_package(TinyALSA REQUIRED)
find_package(RapidJson REQUIRED)
find_package(PrussDrv REQUIRED)
find_package(Xenomai REQUIRED)
find_package(ArmNeonComplex REQUIRED)
find_package(Boost REQUIRED)
add_compile_options(-Wall -Wextra -Wpedantic -Wno-missing-field-initializers -Wno-unused-parameter ${XENOMAI_CFLAGS})
add_definitions(${XENOMAI_DEFINITIONS})
add_executable(scriptable-guitar-pedal src/alsadevice.cpp src/codec.cpp src/delayeffect.cpp src/distortioneffect.cpp src/filesink.cpp src/filesource.cpp src/filtereffect.cpp src/frequencydelayline.cpp src/i2cdevice.cpp src/luaeffect.cpp src/main.cpp src/pru.cpp src/prudevice.cpp src/sampledata.cpp src/sinesource.cpp src/tremoloeffect.cpp src/webserver.cpp)
target_link_libraries(scriptable-guitar-pedal ${NE10_LIBRARIES} ${CIVETWEB_LIBRARIES} ${LIBSNDFILE_LIBRARIES} ${LIBI2C_LIBRARIES} ${LUA_LIBRARIES} ${TINYALSA_LIBRARIES} ${PRUSSDRV_LIBRARIES} ${XENOMAI_LIBRARIES} ${ARM_NEON_COMPLEX_LIBRARIES})
include_directories("${CMAKE_SOURCE_DIR}/include" ${NE10_INCLUDE_DIRS} ${CIVETWEB_INCLUDE_DIRS} ${LIBSNDFILE_INCLUDE_DIRS} ${LIBI2C_INCLUDE_DIRS} ${LUA_INCLUDE_DIRS} ${TINYALSA_INCLUDE_DIRS} ${RAPIDJSON_INCLUDE_DIRS} ${PRUSSDRV_INCLUDE_DIRS} ${XENOMAI_INCLUDE_DIRS} ${ARM_NEON_COMPLEX_INCLUDE_DIRS} ${BOOST_INCLUDE_DIRS})
target_compile_features(scriptable-guitar-pedal PRIVATE cxx_constexpr)
target_compile_features(scriptable-guitar-pedal PUBLIC cxx_std_11)