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.

43 lines
1.5 KiB

  1. set(NAME glm)
  2. file(GLOB ROOT_SOURCE *.cpp)
  3. file(GLOB ROOT_INLINE *.inl)
  4. file(GLOB ROOT_HEADER *.hpp)
  5. file(GLOB_RECURSE CORE_SOURCE ./core/*.cpp)
  6. file(GLOB_RECURSE CORE_INLINE ./core/*.inl)
  7. file(GLOB_RECURSE CORE_HEADER ./core/*.hpp)
  8. file(GLOB_RECURSE GTC_SOURCE ./gtc/*.cpp)
  9. file(GLOB_RECURSE GTC_INLINE ./gtc/*.inl)
  10. file(GLOB_RECURSE GTC_HEADER ./gtc/*.hpp)
  11. file(GLOB_RECURSE GTX_SOURCE ./gtx/*.cpp)
  12. file(GLOB_RECURSE GTX_INLINE ./gtx/*.inl)
  13. file(GLOB_RECURSE GTX_HEADER ./gtx/*.hpp)
  14. file(GLOB_RECURSE VIRTREV_SOURCE ./virtrev/*.cpp)
  15. file(GLOB_RECURSE VIRTREV_INLINE ./virtrev/*.inl)
  16. file(GLOB_RECURSE VIRTREV_HEADER ./virtrev/*.hpp)
  17. source_group("Core Files" FILES ${CORE_SOURCE})
  18. source_group("Core Files" FILES ${CORE_INLINE})
  19. source_group("Core Files" FILES ${CORE_HEADER})
  20. source_group("GTC Files" FILES ${GTC_SOURCE})
  21. source_group("GTC Files" FILES ${GTC_INLINE})
  22. source_group("GTC Files" FILES ${GTC_HEADER})
  23. source_group("GTX Files" FILES ${GTX_SOURCE})
  24. source_group("GTX Files" FILES ${GTX_INLINE})
  25. source_group("GTX Files" FILES ${GTX_HEADER})
  26. source_group("VIRTREV Files" FILES ${VIRTREV_SOURCE})
  27. source_group("VIRTREV Files" FILES ${VIRTREV_INLINE})
  28. source_group("VIRTREV Files" FILES ${VIRTREV_HEADER})
  29. include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
  30. add_executable(${NAME}
  31. ${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
  32. ${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
  33. ${GTC_SOURCE} ${GTC_INLINE} ${GTC_HEADER}
  34. ${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER}
  35. ${VIRTREV_SOURCE} ${VIRTREV_INLINE} ${VIRTREV_HEADER})