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:
parent
5b9658c03a
commit
47dbea1bb4
@ -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()
|
||||||
|
@ -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}
|
||||||
|
Loading…
Reference in New Issue
Block a user