-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
43 lines (35 loc) · 915 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
# ~~~
# Copyright (c) 2024-2025 The Khronos Group Inc.
# Copyright (c) 2024-2025 RasterGrid Kft.
#
# SPDX-License-Identifier: Apache-2.0
# ~~~
set(PCC_NAME "pcconvk")
add_executable(pcc)
target_sources(pcc PRIVATE
pcc_builder.h
pcc_log.h
pcc_main.cpp
)
find_package(cxxopts REQUIRED CONFIG)
target_link_libraries(pcc PRIVATE
jsoncpp_static
valijson
cxxopts::cxxopts
Vulkan::Headers
Vulkan::UtilityHeaders
SPIRV-Tools-opt
SPIRV-Tools-static
SPIRV-Headers::SPIRV-Headers
)
if(${CMAKE_CXX_COMPILER_ID} MATCHES "GNU")
target_compile_options(pcc PRIVATE
-Wno-uninitialized # Needed to work around GCC + address sanitizer STL warning in regex
-Wno-nonnull # Needed to workaround overzealous GCC 14 checks
)
endif()
target_include_directories(pcc PRIVATE
.
)
set_target_properties(pcc PROPERTIES OUTPUT_NAME ${PCC_NAME})
install(TARGETS pcc)