CMake Support #56
-
I'm going to out myself as a dumb little guy here, but I'm struggling to import this as a system library using CMake on an Arch system- the linking for requirements appears to be all mussed up. Is this possible? Can you provide any instructions or tips? I'm afraid I've very little experience with Meson. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
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 However, I'd recommend using Meson instead. Here's an example of a Louvre project using Meson: LouvreTutorial. The |
Beta Was this translation helpful? Give feedback.
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:
The lib name is
libLouvre.so
and the headers directory must be included e.g/usr/local/include/Louvre
.However…