Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Fetch low-level acoustic data from Essentia #300

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ find_package(Filesystem REQUIRED)
find_package(GTest REQUIRED)
find_package(Boost REQUIRED COMPONENTS system program_options)
find_package(Wt REQUIRED COMPONENTS Wt Dbo DboSqlite3 HTTP)
find_package(Essentia REQUIRED)
pkg_check_modules(Taglib REQUIRED IMPORTED_TARGET taglib)
pkg_check_modules(Config++ REQUIRED IMPORTED_TARGET libconfig++)
pkg_check_modules(GraphicsMagick++ IMPORTED_TARGET GraphicsMagick++)
Expand Down
17 changes: 17 additions & 0 deletions cmake/modules/FindEssentia.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
find_package(Eigen3)

find_path(ESSENTIA_INCLUDES essentia/essentia.h)
find_library(ESSENTIA_LIB libessentia.so)

add_library(essentia SHARED IMPORTED)
target_link_libraries(essentia INTERFACE Eigen3::Eigen)
target_include_directories(essentia INTERFACE ${ESSENTIA_INCLUDES})
set_target_properties(essentia
PROPERTIES
IMPORTED_LOCATION ${ESSENTIA_LIB}
INTERFACE_INCLUDE_DIRECTORIES ${ESSENTIA_INCLUDES}
)

find_package_handle_standard_args(Essentia
REQUIRED_VARS ESSENTIA_LIB ESSENTIA_INCLUDES
)
1 change: 1 addition & 0 deletions src/libs/services/scanner/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ target_link_libraries(lmsscanner PRIVATE
target_link_libraries(lmsscanner PUBLIC
std::filesystem
Wt::Wt
essentia
)

install(TARGETS lmsscanner DESTINATION lib)
Expand Down