1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-11-07 11:22:45 +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}") MESSAGE(STATUS "GLM_INCLUDE_DIR = ${GLM_INCLUDE_DIR}")
ENDIF(NOT GLM_FIND_QUIETLY) ENDIF(NOT GLM_FIND_QUIETLY)
ENDIF(GLM_FOUND) 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 target_link_libraries(rwengine
PUBLIC PUBLIC
rwlib rwlib
glm::glm
PRIVATE PRIVATE
${FFMPEG_LIBRARIES} ${FFMPEG_LIBRARIES}
${OPENAL_LIBRARY} ${OPENAL_LIBRARY}