laas / metapod

A template-based robot dynamics library
GNU Lesser General Public License v3.0
14 stars 10 forks source link

cmake: add cross compilation support #61

Closed sbarthelemy closed 11 years ago

sbarthelemy commented 11 years ago

note that on Windows,

GET_PROPERTY(METAPOD_BINARYTREEMODEL_EXECUTABLE
             TARGET metapod_binarytreemodel PROPERTY LOCATION)

Does not return anything useful: the _d prefix used in debug is missing, there are variables to be expanded. See http://www.cmake.org/cmake/help/v2.8.10/cmake.html#prop_tgt:LOCATION

Instead of the executable location, we use the target name.

Change-Id: Ice85eef2c0b81a280dd754e6719c448fc471344c