Add glm fetchcontent
This commit is contained in:
parent
4279dc2827
commit
319cc658d0
1 changed files with 11 additions and 2 deletions
|
@ -77,6 +77,14 @@ else()
|
||||||
FetchContent_MakeAvailable(pugixml)
|
FetchContent_MakeAvailable(pugixml)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
FetchContent_Declare(
|
||||||
|
glm
|
||||||
|
GIT_REPOSITORY https://github.com/g-truc/glm.git
|
||||||
|
GIT_TAG 0.9.9.8
|
||||||
|
)
|
||||||
|
|
||||||
|
FetchContent_MakeAvailable(glm)
|
||||||
|
|
||||||
add_library(libxiv STATIC
|
add_library(libxiv STATIC
|
||||||
src/fiinparser.cpp
|
src/fiinparser.cpp
|
||||||
src/indexparser.cpp
|
src/indexparser.cpp
|
||||||
|
@ -92,9 +100,10 @@ add_library(libxiv STATIC
|
||||||
src/havokxmlparser.cpp
|
src/havokxmlparser.cpp
|
||||||
src/types.cpp
|
src/types.cpp
|
||||||
src/equipment.cpp
|
src/equipment.cpp
|
||||||
src/sqpack.cpp)
|
src/sqpack.cpp
|
||||||
|
src/memorybuffer.cpp)
|
||||||
target_include_directories(libxiv PUBLIC include PRIVATE src)
|
target_include_directories(libxiv PUBLIC include PRIVATE src)
|
||||||
target_link_libraries(libxiv PUBLIC ${LIBRARIES} pugixml::pugixml)
|
target_link_libraries(libxiv PUBLIC ${LIBRARIES} pugixml::pugixml glm::glm)
|
||||||
target_link_directories(libxiv PUBLIC ${LIB_DIRS})
|
target_link_directories(libxiv PUBLIC ${LIB_DIRS})
|
||||||
target_compile_features(libxiv PUBLIC cxx_std_17)
|
target_compile_features(libxiv PUBLIC cxx_std_17)
|
||||||
set_target_properties(libxiv PROPERTIES CXX_EXTENSIONS OFF)
|
set_target_properties(libxiv PROPERTIES CXX_EXTENSIONS OFF)
|
||||||
|
|
Reference in a new issue