I've successfully made an OpenGL ES2 version of Irrlicht on the Raspberry Pi (running nicely too!) but how on earth do I link Minetest to the extra libraries (GLESv2) using CMAKE?
/Dextrus
In order to ensure that the correct static library is used for linking -
even if it's located in a system directory, see [1] - you should use an
imported target and the IMPORTED_LOCATION property, e.g.:
ADD_LIBRARY(boost_unit_test_framework STATIC IMPORTED)
SET_TARGET_PROPERTIES(boost_unit_test_framework PROPERTIES
IMPORTED_LOCATION /usr/lib/libboost_unit_test_framework.a)
TARGET_LINK_LIBRARIES(mytarget A boost_unit_test_framework C)
Otherwise, CMake might drop the path of libboost_unit_test_framework.a
and take the library from another location as the one you've intended.
Users browsing this forum: No registered users and 6 guests