[CMake] Libraries variable

Marie-Christine Vallet mmvallet at ucdavis.edu
Thu Aug 9 17:37:04 EDT 2007


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


More information about the CMake mailing list