Change-Id: I823154dc0c61e7358d88fe6afc4f5808b640804d
target_link_libraries(cube ${LIBRARIES})
endif()
-if(UNIX)
- add_executable(cubepp cube.cpp ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)
-elseif(WIN32)
+if(NOT WIN32)
+ if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
+ add_executable(cubepp cube.cpp ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)
+ target_link_libraries(cubepp ${LIBRARIES})
+ endif()
+else()
+ if (CMAKE_CL_64)
+ set (LIB_DIR "Win64")
+ else()
+ set (LIB_DIR "Win32")
+ endif()
+
add_executable(cubepp WIN32 cube.cpp ${CMAKE_BINARY_DIR}/demos/cube-vert.spv ${CMAKE_BINARY_DIR}/demos/cube-frag.spv)
+ target_link_libraries(cubepp ${LIBRARIES})
endif()
-target_link_libraries(cubepp ${LIBRARIES})
if (${CMAKE_SYSTEM_PROCESSOR} STREQUAL ${CMAKE_HOST_SYSTEM_PROCESSOR})
add_subdirectory(smoke)