[CMake] Add library at compiling time

pellegrini pellegrini at ill.fr
Tue Apr 12 10:52:31 EDT 2011


Hello everybody,

I am using CMake 2.8 on a Fortran 90 project using ifort compiler.

I would like to specify the path for Winteracter graphical library not 
only when linking but also when compiling.
By the way the library is not in a standard location.

I tried to use target_link_libraries function but obviously as indicated 
by its name, it may do the job when linking but certainly not when 
compiling.

Any idea ?

thans in advance

Eric


-- 
Eric Pellegrini
Calcul Scientifique
Institut Laue-Langevin
Grenoble, France



More information about the CMake mailing list