mirror of
https://github.com/g-truc/glm.git
synced 2024-11-27 10:44:34 +00:00
28 lines
881 B
CMake
28 lines
881 B
CMake
|
set(NAME gli)
|
||
|
|
||
|
file(GLOB ROOT_SOURCE *.cpp)
|
||
|
file(GLOB ROOT_INLINE *.inl)
|
||
|
file(GLOB ROOT_HEADER *.hpp)
|
||
|
|
||
|
file(GLOB_RECURSE CORE_SOURCE ./core/*.cpp)
|
||
|
file(GLOB_RECURSE CORE_INLINE ./core/*.inl)
|
||
|
file(GLOB_RECURSE CORE_HEADER ./core/*.hpp)
|
||
|
|
||
|
file(GLOB_RECURSE GTX_SOURCE ./gtx/*.cpp)
|
||
|
file(GLOB_RECURSE GTX_INLINE ./gtx/*.inl)
|
||
|
file(GLOB_RECURSE GTX_HEADER ./gtx/*.hpp)
|
||
|
|
||
|
source_group("Core Files" FILES ${CORE_SOURCE})
|
||
|
source_group("Core Files" FILES ${CORE_INLINE})
|
||
|
source_group("Core Files" FILES ${CORE_HEADER})
|
||
|
source_group("GTX Files" FILES ${GTX_SOURCE})
|
||
|
source_group("GTX Files" FILES ${GTX_INLINE})
|
||
|
source_group("GTX Files" FILES ${GTX_HEADER})
|
||
|
|
||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/..)
|
||
|
|
||
|
add_executable(${NAME}
|
||
|
${ROOT_SOURCE} ${ROOT_INLINE} ${ROOT_HEADER}
|
||
|
${CORE_SOURCE} ${CORE_INLINE} ${CORE_HEADER}
|
||
|
${GTX_SOURCE} ${GTX_INLINE} ${GTX_HEADER} )
|