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