• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1cmake_minimum_required(VERSION 2.8)
2
3set(CMAKE_INSTALL_PREFIX "install" CACHE STRING "prefix" FORCE)
4
5project(buildSpvHeaders)
6
7set(SOURCES
8    main.cpp
9    jsonToSpirv.cpp
10    header.cpp
11    jsoncpp/dist/jsoncpp.cpp)
12
13set(HEADERS
14    jsonToSpirv.h
15    header.h
16    jsoncpp/dist/json/json.h)
17
18if(CMAKE_COMPILER_IS_GNUCXX)
19    add_definitions(-std=c++11)
20elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
21    add_definitions(-std=c++11)
22endif()
23
24add_executable(buildSpvHeaders ${SOURCES} ${HEADERS})
25
26install(TARGETS buildSpvHeaders RUNTIME DESTINATION bin)
27