CMakeLists.txt 468 B

123456789101112131415161718192021
  1. CMAKE_MINIMUM_REQUIRED(VERSION 2.6)
  2. PROJECT(osgExample)
  3. FIND_PACKAGE(OpenSceneGraph REQUIRED COMPONENTS osgViewer osgDB osgGA osgText)
  4. SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11")
  5. INCLUDE_DIRECTORIES(
  6. ${OPENSCENEGRAPH_INCLUDE_DIRS}
  7. )
  8. ADD_EXECUTABLE(osgExample main.cpp)
  9. ADD_EXECUTABLE(osgTransform transforms.cpp)
  10. TARGET_LINK_LIBRARIES(osgExample
  11. ${OPENSCENEGRAPH_LIBRARIES}
  12. )
  13. TARGET_LINK_LIBRARIES(osgTransform
  14. ${OPENSCENEGRAPH_LIBRARIES}
  15. )