Hi,
I don't really know how to explain this but, This is what I would like to do


maindir/
CMakeLists.txt
---
SET(PROJECT_LIBRARIES
       ${GMP_LIBRARIES}
)
---
subdir1/
   CMakeLists.txt
   ---
  SET(PROJECT_LIBRARIES
${PROJECT_LIBRARIES} anotherlib
   )
   ---
subdir2/
   CMakeLists.txt
   ---
   SET(SUB2LIB
      ${PROJECT_LIBRARIES}
      ${MYOTHERLIB_LIBRARIES}
   )
#in here I would like to find the library anotherlib
   ---

This does not work, but is there another way like a variable that I could use? I looked at http://www.cmake.org/Wiki/CMake_Useful_Variables , but could not find one,
Thanks
Marie
_______________________________________________
CMake mailing list
CMake@cmake.org
http://www.cmake.org/mailman/listinfo/cmake

Reply via email to