2
0

JoltViewer.cmake 668 B

1234567891011121314151617181920
  1. # Root
  2. set(JOLT_VIEWER_ROOT ${PHYSICS_REPO_ROOT}/JoltViewer)
  3. # Source files
  4. set(JOLT_VIEWER_SRC_FILES
  5. ${JOLT_VIEWER_ROOT}/JoltViewer.cmake
  6. ${JOLT_VIEWER_ROOT}/JoltViewer.cpp
  7. ${JOLT_VIEWER_ROOT}/JoltViewer.h
  8. )
  9. # Group source files
  10. source_group(TREE ${JOLT_VIEWER_ROOT} FILES ${JOLT_VIEWER_SRC_FILES})
  11. # Create JoltViewer executable
  12. add_executable(JoltViewer ${JOLT_VIEWER_SRC_FILES})
  13. target_include_directories(JoltViewer PUBLIC ${JOLT_VIEWER_ROOT})
  14. target_link_libraries(JoltViewer LINK_PUBLIC TestFramework d3d12.lib shcore.lib)
  15. # Set the correct working directory
  16. set_property(TARGET JoltViewer PROPERTY VS_DEBUGGER_WORKING_DIRECTORY "${PHYSICS_REPO_ROOT}")