Skip to content

Commit

Permalink
fix cmake inclusion and install (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yangqing authored and Maratyszcza committed Nov 28, 2018
1 parent ebe9dec commit febbb1c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -74,16 +74,20 @@ IF(${CMAKE_VERSION} VERSION_LESS "3.0")
ELSE()
ADD_LIBRARY(fp16 INTERFACE)
ENDIF()
TARGET_INCLUDE_DIRECTORIES(fp16 INTERFACE include)
TARGET_INCLUDE_DIRECTORIES(fp16 INTERFACE
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:include>)

INSTALL(FILES include/fp16.h
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
INSTALL(FILES
include/fp16/bitcasts.h
include/fp16/fp16.h
include/fp16/psimd.h
include/fp16/__init__.py
include/fp16/avx.py
include/fp16/avx2.py
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/fp16)

# ---[ Configure psimd
IF(NOT TARGET psimd)
Expand Down

0 comments on commit febbb1c

Please sign in to comment.