>
> INCLUDE_DIRECTORIES( ${FOO_SOURCE_DIR} )
> # "FOO" here comes from the PROJECT() line in the other CMakeLists.txt
>
I don't want to add project(FOO) in my target'sCMakeLists.txt.
Because it is really not a real project, only a library target.
Does there exist other way?

> I've seen your English improve a lot over the last half year, so I would
> not
> be sorry for that :-)
>
Thanks! :-)

2012/9/7 Sascha Cunz <[email protected]>

> If you have in one CMakeLists.txt:
>
> PROJECT( FOO )
> ADD_LIBRARY( fooLibrary source.cpp )
>
> then you can simply do in another CMakeLists.txt:
>
> INCLUDE_DIRECTORIES( ${FOO_SOURCE_DIR} )
> # "FOO" here comes from the PROJECT() line in the other CMakeLists.txt
>
> > Sorry for my poor English.
> > English is not my native language.
>
> I've seen your English improve a lot over the last half year, so I would
> not
> be sorry for that :-) Anyway, I'd guess it's at least about half (2/3?) the
> world that doesn't speak English natively.
>



-- 
Best Regards
Yuchen
--

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