mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-09 18:11:38 +08:00
7003b953c7
* port for spirv-reflect * commiting results of vcpkg x-add-version --all * fixing deprecated function calls * removing unused messages * fixing version issue * fixing version issue wrong sha * fixing version issue missing port version * fixing version issue missing port version and wrong sha * update version db * update version db * port version bump * Update version database * Apply suggestions from code review Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Update versions db * CMakeLists substitution instead of patch * remove commented outdated command * version update * Update ports/spirv-reflect/CMakeLists.txt Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update version db * Remove GNUInstallDirs * update version db * Update ports/spirv-reflect/CMakeLists.txt Co-authored-by: Billy O'Neal <bion@microsoft.com> * Adding @BillyONeal suggestions * Removing unneeded check as suggested by @BillyONeal * Apply suggestions from code review Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * update version db * Drop "unofficial" from the unnamespaced target name. * Fix version database. Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Billy O'Neal <bion@microsoft.com>
34 lines
1.2 KiB
CMake
34 lines
1.2 KiB
CMake
cmake_minimum_required(VERSION 3.1)
|
|
project(spirv-reflect)
|
|
|
|
set_property(GLOBAL PROPERTY USE_FOLDERS ON)
|
|
|
|
add_library(spirv-reflect ${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.h
|
|
${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.c)
|
|
if (SPIRV_REFLECT_ENABLE_ASSERTS)
|
|
target_compile_definitions(spirv-reflect PRIVATE SPIRV_REFLECT_ENABLE_ASSERTS)
|
|
endif()
|
|
set_target_properties(spirv-reflect PROPERTIES CXX_STANDARD 11)
|
|
target_include_directories(spirv-reflect PRIVATE ${CMAKE_CURRENT_SOURCE_DIR})
|
|
if(WIN32)
|
|
target_compile_definitions(spirv-reflect PRIVATE _CRT_SECURE_NO_WARNINGS)
|
|
endif()
|
|
|
|
target_include_directories(spirv-reflect INTERFACE $<INSTALL_INTERFACE:include>)
|
|
|
|
install(
|
|
TARGETS spirv-reflect EXPORT unofficial-spirv-reflect-config
|
|
RUNTIME DESTINATION bin
|
|
ARCHIVE DESTINATION lib
|
|
LIBRARY DESTINATION lib
|
|
)
|
|
|
|
install(
|
|
EXPORT unofficial-spirv-reflect-config
|
|
NAMESPACE unofficial::spirv-reflect::
|
|
DESTINATION share/unofficial-spirv-reflect
|
|
)
|
|
|
|
install(FILES "${CMAKE_CURRENT_SOURCE_DIR}/spirv_reflect.h" DESTINATION include)
|
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include" DESTINATION include)
|