You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CMakeLists.txt 944 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. FIND_PACKAGE(OpenGL)
  2. FIND_PACKAGE(GLUT)
  3. IF ( NOT GLUT_FOUND )
  4. IF ( MSVC )
  5. SET ( GLUT_FOUND 1 )
  6. SET ( GLUT_INCLUDE_DIR ${Assimp_SOURCE_DIR}/samples/glut/ )
  7. SET ( GLUT_LIBRARIES ${Assimp_SOURCE_DIR}/samples/glut/glut32.lib )
  8. ELSE ( MSVC )
  9. MESSAGE( WARNING "Please install glut." )
  10. ENDIF ( MSVC )
  11. ENDIF ( NOT GLUT_FOUND )
  12. INCLUDE_DIRECTORIES(
  13. ${Assimp_SOURCE_DIR}/include
  14. ${Assimp_SOURCE_DIR}/code
  15. ${OPENGL_INCLUDE_DIR}
  16. ${GLUT_INCLUDE_DIR}
  17. )
  18. LINK_DIRECTORIES(
  19. ${Assimp_BINARY_DIR}
  20. ${Assimp_BINARY_DIR}/lib
  21. )
  22. ADD_EXECUTABLE( assimp_simpleogl
  23. Sample_SimpleOpenGL.c
  24. )
  25. SET_PROPERTY(TARGET assimp_simpleogl PROPERTY DEBUG_POSTFIX ${ASSIMP_DEBUG_POSTFIX})
  26. TARGET_LINK_LIBRARIES( assimp_simpleogl assimp ${OPENGL_LIBRARIES} ${GLUT_LIBRARIES} )
  27. SET_TARGET_PROPERTIES( assimp_simpleogl PROPERTIES
  28. OUTPUT_NAME assimp_simpleogl
  29. )
  30. INSTALL( TARGETS assimp_simpleogl
  31. DESTINATION "${ASSIMP_BIN_INSTALL_DIR}" COMPONENT assimp-dev
  32. )