Repository navigation
|
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. |
Answered by
jcelerier
Nov 16, 2024
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) |
1 reply
Answer selected by
flpDiskJ
|
Added some documentation here: https://celtera.github.io/libremidi/cmake.html |
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
hello ! how does your CMakeLists.txt look like ?
The simplest way is to use add_subdirectory and then link libremidi to your app: