Questions tagged [target-link-libraries]

21 questions
0
votes
2 answers

Where does target_link_libraries look for the required files?

I am building a project from source and am trying to understand what is happening in the CMakeLists.txt files. Where exactly is target_link_libraries looking for the required library files? The specific CMakeLists.txt file I have…
0
votes
0 answers

CMake Error: Attempt to add link library to target which is not built in this directory (only when policy CMP0079 is set to NEW)

I want to link the component "fsm" into my executable (main.cpp). "fsm" is dependent on "taskmap". So I was trying to figure out how to configure cmake to recognise my libraries the correct way, but the configuration always fails with the following…
glades
  • 3,778
  • 1
  • 12
  • 34
0
votes
1 answer

How to find out which lib file I need to link while I use a third party library?

For example if I use a function in opencv, and I can use two methods to specify the libs and link them. First one, I can use find_package(OpenCV 3.3 REQUIRED) and them target_link_libraries( main ${OpenCV_LIBS}) because the macro include all the…
0
votes
1 answer

Cmake set relative path to binary to 3rd party library

I'm trying to make my first roject using Cmake and I'm faced with issue with static linking to *.so library. My binary see libraries only from the build folder. I've tried to use this statements from "RPATH handling" manual, but it's not working so…
Demetera
  • 53
  • 1
  • 8
-1
votes
2 answers

What's the difference between add_dependencies and target_link_libraries for library targets?

In CMake, what is the difference between: add_dependencies(tgt1 tgt2) and target_link_libraries(tgt1 tgt2) when tgt2 being a library target? Note: I don't mean difference in implementation, I mean difference in semantics.
-1
votes
1 answer

java.lang.UnsatisfiedLinkError exception while creating EpcDocument object from FesApi with in teiid jboss translator development

I am getting this exception while try to read epc file in EpcDocument with in Teiid Translator deployed in Jboss server java.lang.UnsatisfiedLinkError:com.f2i.energisticsStandardsApi.fesapiJNI.new_common_EpcDocument(Ljava/lang/String;)J at…
1
2