xref: /third_party/spirv-headers/tools/buildHeaders/CMakeLists.txt
  • Home
  • History
  • Annotate Annotate
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
  • only in /third_party/spirv-headers/tools/buildHeaders/
1b2a28edaSopenharmony_cicmake_minimum_required(VERSION 3.0)
2b2a28edaSopenharmony_ci
3b2a28edaSopenharmony_ciset(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)
4b2a28edaSopenharmony_ci
5b2a28edaSopenharmony_ciproject(buildSpvHeaders)
6b2a28edaSopenharmony_ci
7b2a28edaSopenharmony_ciset(SOURCES
8b2a28edaSopenharmony_ci    main.cpp
9b2a28edaSopenharmony_ci    jsonToSpirv.cpp
10b2a28edaSopenharmony_ci    header.cpp
11b2a28edaSopenharmony_ci    jsoncpp/dist/jsoncpp.cpp)
12b2a28edaSopenharmony_ci
13b2a28edaSopenharmony_ciset(HEADERS
14b2a28edaSopenharmony_ci    jsonToSpirv.h
15b2a28edaSopenharmony_ci    header.h
16b2a28edaSopenharmony_ci    jsoncpp/dist/json/json.h)
17b2a28edaSopenharmony_ci
18b2a28edaSopenharmony_ciif(CMAKE_COMPILER_IS_GNUCXX)
19b2a28edaSopenharmony_ci    add_definitions(-std=c++11)
20b2a28edaSopenharmony_cielseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
21b2a28edaSopenharmony_ci    add_definitions(-std=c++11)
22b2a28edaSopenharmony_ciendif()
23b2a28edaSopenharmony_ci
24b2a28edaSopenharmony_ciadd_executable(buildSpvHeaders ${SOURCES} ${HEADERS})
25b2a28edaSopenharmony_ci
26b2a28edaSopenharmony_ciinstall(TARGETS buildSpvHeaders RUNTIME DESTINATION bin)
27

Indexes created Thu Nov 07 10:32:03 CST 2024