2026-02-28 01:56:55 +01:00
|
|
|
project(Pasada_Lib)
|
|
|
|
|
|
|
|
|
|
SET(PASADA_SRC
|
|
|
|
|
library.cpp
|
2026-03-02 17:23:14 +01:00
|
|
|
iir_filter.cpp
|
2026-03-03 00:33:03 +01:00
|
|
|
ssf_filter.cpp
|
2026-03-04 15:34:46 +01:00
|
|
|
pd_signal.cpp
|
2026-03-15 23:07:05 +01:00
|
|
|
step_detector.cpp
|
2026-02-28 01:56:55 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
if(PASADA_BUILD_TESTS)
|
|
|
|
|
# must build a STATIC library for google-tests to successfully consume us
|
|
|
|
|
# (otherwise, strange runtime errors ensue when trying to call into the lib)
|
|
|
|
|
add_library(pasada STATIC
|
|
|
|
|
${PASADA_SRC}
|
|
|
|
|
)
|
|
|
|
|
else()
|
|
|
|
|
add_library(pasada SHARED
|
|
|
|
|
${PASADA_SRC}
|
|
|
|
|
)
|
|
|
|
|
endif()
|
|
|
|
|
|
|
|
|
|
target_include_directories(pasada
|
|
|
|
|
PUBLIC
|
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/include
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|