Merge pull request #1054 from kiroma/master

Create an install and package targets in cmake tree #1054
This commit is contained in:
Christophe
2021-03-08 10:55:19 +01:00
committed by GitHub
8 changed files with 68 additions and 44 deletions

View File

@@ -43,7 +43,15 @@ source_group("SIMD Files" FILES ${SIMD_INLINE})
source_group("SIMD Files" FILES ${SIMD_HEADER})
add_library(glm INTERFACE)
target_include_directories(glm INTERFACE ../)
include(GNUInstallDirs)
target_include_directories(glm INTERFACE
$<BUILD_INTERFACE:${CMAKE_SOURCE_DIR}>
$<INSTALL_INTERFACE:${CMAKE_INSTALL_INCLUDEDIR}>
)
install(TARGETS glm EXPORT glm)
if(BUILD_STATIC_LIBS)
add_library(glm_static STATIC ${ROOT_TEXT} ${ROOT_MD} ${ROOT_NAT}