-
Hello. I would like to add this library to a music tracker I'm working on. Following the docs I'm confused on how I would add this lib to my per-existing cmake environment. When I add the include statement to my code
It says it cannot be found.. I assume I need to add something to my cmakelists.txt but I'm not sure what exactly. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 5 replies
-
hello ! how does your CMakeLists.txt look like ? project(your_project)
# load dependencies
add_subdirectory(3rdparty/libremidi) # example folder
# create your app
add_executable(your_tracker foo.cpp bar.cpp main.cpp)
target_link_libraries(your_tracker PRIVATE libremidi) |
Beta Was this translation helpful? Give feedback.
-
Added some documentation here: https://celtera.github.io/libremidi/cmake.html |
Beta Was this translation helpful? Give feedback.
hello ! how does your CMakeLists.txt look like ?
The simplest way is to use add_subdirectory and then link libremidi to your app: