1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-02 00:42:33 +01:00

cmake: make glm an imported target

This commit is contained in:
Anonymous Maarten 2017-10-26 01:59:05 +02:00 committed by Daniel Evans
parent 5b9658c03a
commit 47dbea1bb4
2 changed files with 8 additions and 0 deletions

View File

@ -63,3 +63,10 @@ IF(GLM_FOUND)
MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}")
ENDIF(NOT GLM_FIND_QUIETLY)
ENDIF(GLM_FOUND)
if(GLM_FOUND)
add_library(glm::glm INTERFACE IMPORTED)
set_target_properties(glm::glm PROPERTIES
INTERFACE_INCLUDE_DIRECTORIES "${GLM_INCLUDE_DIR}"
)
endif()

View File

@ -148,6 +148,7 @@ add_library(rwengine
target_link_libraries(rwengine
PUBLIC
rwlib
glm::glm
PRIVATE
${FFMPEG_LIBRARIES}
${OPENAL_LIBRARY}