mirror of
https://github.com/redstrate/dxbc.git
synced 2025-04-20 03:37:47 +00:00
20 lines
No EOL
390 B
CMake
20 lines
No EOL
390 B
CMake
cmake_minimum_required(VERSION 3.20)
|
|
|
|
project(dxbc LANGUAGES CXX)
|
|
|
|
option(BUILD_EXAMPLE "Build example application" ON)
|
|
|
|
find_package(Vulkan REQUIRED)
|
|
find_package(SPIRV-Headers REQUIRED)
|
|
|
|
if (NOT WIN32)
|
|
add_subdirectory(include/windows)
|
|
endif()
|
|
|
|
add_subdirectory(src/util)
|
|
add_subdirectory(src/spirv)
|
|
add_subdirectory(src/dxbc)
|
|
|
|
if (BUILD_EXAMPLE)
|
|
add_subdirectory(example)
|
|
endif() |