Skip to content

CMake Support #56

Answered by ehopperdietzel
1ynxy asked this question in Support
May 2, 2024 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Have you installed it yet? If not, you can easily get it via AUR. Additionally, if you're interested in using the latest version, say the 2.0.0 branch, you'll need to build and install it manually using Meson.

I'm not very familiar with CMake, but I believe this is how you can link it to your project:

project(your_project)

...

find_package(PkgConfig REQUIRED)
pkg_check_modules(LOUVRE REQUIRED Louvre)
include_directories(${LOUVRE_INCLUDE_DIRS})
link_directories(${LOUVRE_LIBRARY_DIRS})
add_definitions(${LOUVRE_CFLAGS_OTHER})
target_link_libraries(your_project ${LOUVRE_LIBRARIES})

The lib name is libLouvre.so and the headers directory must be included e.g /usr/local/include/Louvre.

However…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@1ynxy
Comment options

Answer selected by 1ynxy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants