Cmake plugin question

Hello!

I’m trying to create a snap with a part of the “openalpr” project:

The problem I’m having is that the CMakeLists.txt file is not in the root of the repository, and I haven’t found a way to specify the cmake plugin where to find the CMakeLists.txt file, it always just looks into the root directory.

I appreciate any help in advance.
Thanks!
Sam

Have you tried source-subdir: for this?

2 Likes

Hey Saviq,

Being new to snapcraft, I wasn’t aware that source-subdir existed.
I just tried it and it worked perfectly, thanks again!!

Sam