Thanks Philip,
that worked flawlessly!
I would say that *this* is the most compact CMake specification to compile
a Glut/OpenGL application then:
*find_package(GLUT)
find_package(OpenGL)
INCLUDE_DIRECTORIES(${OPENGL_INCLUDE_DIR})
ADD_EXECUTABLE(mesh_view mesh_view.cpp)
TARGET_LINK_LIBRARIES(mesh_view ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES}) *
Hopefully other people will be able to find this solution.
--
Andrea Tagliasacchi
Ph.D. Candidate
School of Computer Science
Simon Fraser University
Try TARGET_LINK_LIBRARIES(mesh_view ${OPENGL_LIBRARIES})
> If it fails to link you can use "make VERBOSE=1" to look at the
> compiler/linker flags.
> --
> Philip Lowman
>
_______________________________________________
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