Zitat von Marc Kammer <[email protected]>:
ADD_LIBRARY(ObjectManager STATIC /homes/myNameprogram2/src/theOtherProg.cpp)
to CMakeLists.txt in the "first dir".

If I now try to compile theProg.cpp I get the following error message:

-- Build files have been written to: /homes/myName/program1/src/make
[ 50%] Built target theOtherProg
Scanning dependencies of target yarpy
Linking CXX executable yarpy

Do you actually called
  target_link_libraries(yarpy ObjectManager)
?

HS


_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to