How to let CMake to know the library is in some directory?

Posted by prosseek on Stack Overflow See other posts from Stack Overflow or by prosseek
Published on 2011-01-11T16:35:37Z Indexed on 2011/01/11 16:54 UTC
Read the original article Hit count: 176

Filed under:
|

I have a library in c:\cppunit\lib, and a header files in c:\cppunit\include. I come up with this cmake file to build with the library.

How to let CMake to know the library is in c:/cppunit/lib?

PROJECT( cppunitest )
INCLUDE_DIRECTORIES( "c:/cppunit/include" )
??? How to let CMake to know the library is in c:/cppunit/lib
SET( cppunitest_SRC main.cpp testset.cpp complex.cpp  )
LINK_LIBRARIES(cppunit)
ADD_EXECUTABLE( cpptest ${cppunitest_SRC})

© Stack Overflow or respective owner

Related posts about makefile

Related posts about cmake