[CMake] Linking fails on small program
alexandre at crans.org
alexandre at crans.org
Sat Sep 19 22:28:12 EDT 2009
Alain Leblanc a écrit :
>> cmake_minimum_required (VERSION 2.6)
>> project (Zou)
>> add_library(Matrix matrix.cpp)
>> add_library(Pose pose.cpp)
>> add_executable (Zou main.cpp)
>> link_libraries(Zou Pose Matrix)
>
>
> Do you mean target_link_libraries() here? I don't see anything about
> link_libraries() in the cmake documentation.
That solved my problem. Thank you !
More information about the CMake
mailing list