Skip to content

Target "SofaCaribou.Python" links to target "Caribou::Python.Config" but the target was not found #90

Answered by jnbrunet
Ziemnono asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @Ziemnono ,

Here's two examples to create a cmake project that depends on Caribou and Sofacaribou.

Let's suppose I have the following environment variable set:

$ export SOFA_ROOT=/opt/sofa/build/install 
$ export CARIBOU_ROOT=/opt/caribou/build/install

Note here that both variables point to the installation directory of both SOFA and caribou, and not the build directory. Hence if you have built them instead of downloading the binaries, you have to execute make install inside the build directory.

Linking a test executable against Caribou

CMakeLists.txt

cmake_minimum_required(VERSION 3.20)
project(test)

find_package(Caribou REQUIRED)
find_package(Eigen3 REQUIRED)

add_executable(test m…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by Sidaty1
Comment options

Ziemnono
Dec 17, 2021
Collaborator Author

You must be logged in to vote
1 reply
@jnbrunet
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants