blob: 2c9f4c38930a8b0a3cc33d8d83a8296e3a36f356 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
cmake_minimum_required(VERSION 3.18)
project(ISPCDefines CXX ISPC)
set(CMAKE_ISPC_FLAGS -DM_PI=3.1415926535f [==[-DSTRUCT_DEFINE=struct{uniform int a]==])
add_executable(ISPCResponseFile
main.cxx
simple.ispc
)
set_target_properties(ISPCResponseFile PROPERTIES POSITION_INDEPENDENT_CODE ON)
target_include_directories(ISPCResponseFile PRIVATE "${CMAKE_CURRENT_BINARY_DIR}")
|