diff options
Diffstat (limited to 'Tests/ISPC/Defines/CMakeLists.txt')
-rw-r--r-- | Tests/ISPC/Defines/CMakeLists.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Tests/ISPC/Defines/CMakeLists.txt b/Tests/ISPC/Defines/CMakeLists.txt new file mode 100644 index 0000000..2c9f4c3 --- /dev/null +++ b/Tests/ISPC/Defines/CMakeLists.txt @@ -0,0 +1,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}") |