In my project I got a local library I am shipping with the project.
For that reason I included in the cmake file
LINK_DIRECTORIES(bls/build/src)
INCLUDE_DIRECTORIES(bls/src)
LINK_DIRECTORIES(bls/build/contrib/relic/lib)
INCLUDE_DIRECTORIES(bls/build/contrib/relic/include)
INCLUDE_DIRECTORIES(bls/contrib/relic/include)
And then link it to the executables
add_executable(keygen_bls
src/keygen_bls.cpp)
target_link_libraries(keygen_bls blstmp relic_s)
With this cmake runs fine. However when I run make then I get.
/usr/bin/ld: cannot find -lblstmp
/usr/bin/ld: cannot find -lrelic_s
Even though those libraries are at the places I specified above and not at /usr/bin/ld.
Project paths