[CMake] Problems compiling a lib

Hendrik Sattler post at hendrik-sattler.de
Fri Apr 13 12:29:58 EDT 2007


Am Freitag 13 April 2007 10:30 schrieb carsten.fischer at kayser-threde.com:
> Hello,
>
> I Have a problem compiling a special library.
> For compyling my own lib, i need some other lib as GLOBAL.
> This lib is not installed on my system, but i have it in a seperate
> folder in CMAKE_SOURCE.
> How can i set this lib as global (in VisualC++ I do with a -I
> <Source-Folder>)

For the header files:
include_directories ( <Source-Folder> )

for the lib:
link_directories ( <Source-Folder> )

HS


More information about the CMake mailing list