mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-21 18:47:50 +08:00
de9bb1d202
* [vcl] add vector class library version 2 * fix target path * renamed library to vectorclass. Improved CMakelists.txt. Added early architecture failure * don't perform changes in the source dir and make cxx_std_17 a build requirement * update to tagged version 2.00.01 * update version in CMakeLists.txt * refactored CMakeLists.txt
24 lines
985 B
CMake
24 lines
985 B
CMake
cmake_minimum_required(VERSION 3.8.0)
|
|
project(vectorclass VERSION 2.00.01 LANGUAGES CXX)
|
|
|
|
add_library(${PROJECT_NAME} STATIC instrset_detect.cpp)
|
|
|
|
target_include_directories(${PROJECT_NAME} INTERFACE
|
|
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>
|
|
$<INSTALL_INTERFACE:include/${PROJECT_NAME}>)
|
|
|
|
target_compile_features(${PROJECT_NAME} PUBLIC cxx_std_17)
|
|
|
|
include(CMakePackageConfigHelpers)
|
|
write_basic_package_version_file("${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake"
|
|
VERSION ${${PROJECT_NAME}_VERSION}
|
|
COMPATIBILITY SameMajorVersion)
|
|
|
|
install(TARGETS ${PROJECT_NAME} EXPORT ${PROJECT_NAME}-config)
|
|
install(
|
|
EXPORT ${PROJECT_NAME}-config DESTINATION lib/cmake/${PROJECT_NAME}
|
|
NAMESPACE ${PROJECT_NAME}::)
|
|
install(
|
|
FILES "${CMAKE_CURRENT_BINARY_DIR}/${PROJECT_NAME}-config-version.cmake"
|
|
DESTINATION lib/cmake/${PROJECT_NAME})
|
|
install(DIRECTORY . DESTINATION include/${PROJECT_NAME} FILES_MATCHING PATTERN *.h) |