Including activemq-cpp in a CMakeProject using VSCode #41560
Unanswered
Ruhrpottpatriot
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Should have been |
Beta Was this translation helpful? Give feedback.
1 reply
-
LIBRARIES variables usually just carry linker information. If you use variables instead of import targets, you have to apply INCLUDE_DIRS variables as well. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a project which uses ActiveMQ to communicate between components. For the c++ based components I want to use activemq-cpp. However, when I include the library in my manifest file, neither the compiler, nor VSCode can find the required header files.
My manifest looks like this:
while my CMakeLists.txt looks like this
and my library CMakeLists.txt looks like this:
and finally the culprit, lib.cpp:
As written in the code comments, neither the compiler, nor IntelliSense can find
activemq/core/ActiveMQConnectionFactory.h
. When I run CMake, it runs vcpkg install and installs activemq-cpp, but later it can't find it when the project is configured.Beta Was this translation helpful? Give feedback.
All reactions