Hi Thomas,
you need to do a couple of things, first take a copy of the
CMakeModules folder of OSG itself :
http://www.openscenegraph.org/projects/osg/browser/OpenSceneGraph/trunk/CMakeModules
Then you need to tell CMake via your CMakeLists.txt where to find those
set(CMAKE_MODULE_PATH
Hi,
it seems like it found the headers and is breaking on linking.
I attach a CMakeLists.txt I use for simple test apps. It assumes OSG is
installed and the linker can find it (e.g. mine is installed in
/usr/local and /usr/local/lib is added in /etc/ld.so.conf).
You could also have a look
Hi,
thanks for the help. I am on debian there it seemed i must use lower-case
find_package(osg), not OSG.
the line
target_link_libraries(testProjectMain ${OSG_LIBRARY} ${OPENTHREADS_LIBRARY})
works with OpenThreads , but ${OPENTHREADS_LIBRARY} it cannot find
Thank you!
Cheers,
Thomas
3 matches
Mail list logo