-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrating into existing CMake Project #1573
Comments
Here are two example projects of how to integrate the library: |
Thank you! |
@jeffmorr how did you fix that error? |
Same problem here. I have installed the library through vcpkg. This is my CMakeLists.txt:
I get the next output:
Can anybody help me about what it is wrong in my cmake file? |
I'm not using vcpkg, but looking at https://vcpkg.readthedocs.io/en/latest/examples/installing-and-using-packages/ it seems you need to pass a toolchain file. |
I am starting with c++ and I finished switching to conan. Now I am using the library and it is working fine. Thanks so much!!! |
Hey guys I had trouble with find_package as well. I am using Ubuntu 18.04. In the end, I used this line and the package was found
|
Set you Toolchain to:
(You'll need to specify $VCPKG_ROOT yourself.) If you're using a Remote Toolchain in an IDE, you cannot just set the toolchain, so include the above vcpkg toolchain in your CMakeLists.txt file, instead:
|
Looks like these tests have moved. |
Hi all,
I am new to using CMake and am very confused as to how I am supposed to integrate this project into my existing CMake Project. This is what I currently have:
The result of this file creates this error and I'm not sure how to fix:
Any help is appreciated! Thank you.
The text was updated successfully, but these errors were encountered: