File: CMakeLists.txt

package info (click to toggle)
spirv-headers 1.3%2Bgit20190113-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,380 kB
  • sloc: cpp: 10,275; ansic: 4,291; cs: 3,898; python: 3,726; xml: 39; makefile: 9; sh: 3
file content (26 lines) | stat: -rw-r--r-- 553 bytes parent folder | download | duplicates (15)
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
cmake_minimum_required(VERSION 2.8)

set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)

project(buildSpvHeaders)

set(SOURCES
    main.cpp
    jsonToSpirv.cpp
    header.cpp
    jsoncpp/dist/jsoncpp.cpp)

set(HEADERS
    jsonToSpirv.h
    header.h
    jsoncpp/dist/json/json.h)

if(CMAKE_COMPILER_IS_GNUCXX)
    add_definitions(-std=c++11)
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
    add_definitions(-std=c++11)
endif()

add_executable(buildSpvHeaders ${SOURCES} ${HEADERS})

install(TARGETS buildSpvHeaders RUNTIME DESTINATION bin)