diff --git "a/prj/cmake/arm.cmake" "b/prj/cmake/arm.cmake" index 791acf2..858b636 100644 --- "a/prj/cmake/arm.cmake" +++ "b/prj/cmake/arm.cmake" @@ -27,6 +27,10 @@ file(GLOB_RECURSE SIMD_LIB_SRC ${SIMD_ROOT}/src/Simd/SimdLib.cpp) set_source_files_properties(${SIMD_LIB_SRC} PROPERTIES COMPILE_FLAGS "${COMMON_CXX_FLAGS} ${CXX_NEON_FLAG}") add_library(Simd ${SIMD_LIB_TYPE} ${SIMD_LIB_SRC} ${SIMD_BASE_SRC} ${SIMD_NEON_SRC}) +set_target_properties(Simd PROPERTIES PUBLIC_HEADER "${SIMD_ROOT}/src/Simd/SimdLib.h;${SIMD_ROOT}/src/Simd/SimdLib.hpp") +install(TARGETS Simd EXPORT simdtargets LIBRARY DESTINATION "lib" PUBLIC_HEADER DESTINATION "include") +install(EXPORT simdtargets DESTINATION share/simd) + if(SIMD_TEST) file(GLOB_RECURSE TEST_SRC_C ${SIMD_ROOT}/src/Test/*.c) file(GLOB_RECURSE TEST_SRC_CPP ${SIMD_ROOT}/src/Test/*.cpp) diff --git "a/prj/cmake/x86.cmake" "b/prj/cmake/x86.cmake" index c6799a6..7e80255 100644 --- "a/prj/cmake/x86.cmake" +++ "b/prj/cmake/x86.cmake" @@ -83,6 +83,10 @@ file(GLOB_RECURSE SIMD_LIB_SRC ${SIMD_ROOT}/src/Simd/SimdLib.cpp) set_source_files_properties(${SIMD_LIB_SRC} PROPERTIES COMPILE_FLAGS "${SIMD_LIB_FLAGS}") add_library(Simd ${SIMD_LIB_TYPE} ${SIMD_LIB_SRC} ${SIMD_ALG_SRC}) +set_target_properties(Simd PROPERTIES PUBLIC_HEADER "${SIMD_ROOT}/src/Simd/SimdLib.h;${SIMD_ROOT}/src/Simd/SimdLib.hpp") +install(TARGETS Simd EXPORT simdtargets LIBRARY DESTINATION "lib" PUBLIC_HEADER DESTINATION "include") +install(EXPORT simdtargets DESTINATION share/simd) + if(SIMD_TEST) file(GLOB_RECURSE TEST_SRC_C ${SIMD_ROOT}/src/Test/*.c) if((CMAKE_CXX_COMPILER MATCHES "clang") OR (CMAKE_CXX_COMPILER_ID MATCHES "Clang"))