Hi everyone!
I've got such a problem, that I'm using Kdevelop 3. Kdevelop offer only cmake for compiling with shared library support. So it uses CMakeLists.txt as config file for that
Thats an example. It works. But, I cannot move the program. It always looks for that shared library ONLY where it was created. How this problem could be solved? Help please, someone!
I've got such a problem, that I'm using Kdevelop 3. Kdevelop offer only cmake for compiling with shared library support. So it uses CMakeLists.txt as config file for that
Code:
#add definitions, compiler switches, etc. ADD_DEFINITIONS(-Wall -O2 -L) #build a shared library ADD_LIBRARY(test2 SHARED test2.cpp) #for testing the shared library you probably need some test app too ADD_EXECUTABLE(test2test test2test.cpp) #need to link to some other libraries ? just add them here TARGET_LINK_LIBRARIES(test2test test2)
Comment