blob: c6241510edf6b2bc000f138e0b7fcf25716c254b [file] [log] [blame]
Chris Forbes670217a2019-01-30 11:45:07 -08001cmake_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)