[CMake] how to modify scope of imported library
Cong Ma
cong.ma at curvedental.com
Thu Mar 8 21:24:00 EST 2012
Hi,
Imported library has scope in the directory in which it is created and
below.
If I want to use this library in parent scope, what should I do?
for example,
top CMakeLists.txt
add_subdirectory(sub)
add_executable(myapp main.cpp)
target_link_libraries(myapp imported_lib)
sub CMakeLists.txt
add_library(imported_lib STATIC IMPORTED)
Thanks for your helping~~
--
*CONG MA *
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.cmake.org/pipermail/cmake/attachments/20120308/b9b31316/attachment.htm>
More information about the CMake
mailing list