-
Hi, add_library(LIB ${LIBS_SRC}) The generated compilation commands don't add an include to the packages folder, so the compilation obviously fails. Only if I add:
The additional include directories are properly generated and the library compiles. Is this the recommended way to do this? Basically I would only like to add include directory to the vcpkg include folder, how do I achieve that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Yes, using exported targets is the recommended way to consume packages. |
Beta Was this translation helpful? Give feedback.
Yes, using exported targets is the recommended way to consume packages.
You might want to specify scope though. https://cmake.org/cmake/help/latest/manual/cmake-buildsystem.7.html#target-command-scope