[prev in list] [next in list] [prev in thread] [next in thread] 

List:       cmake
Subject:    Re: [CMake] Linking fails on small program
From:       alexandre () crans ! org
Date:       2009-09-20 2:28:12
Message-ID: 4AB5933C.6010401 () crans ! org
[Download RAW message or body]

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 !
_______________________________________________
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

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic