Files
tinyusdz/examples/file_format/CMakeLists.txt
2023-09-20 22:43:34 +09:00

16 lines
508 B
CMake

# Assume this cmake is called from tinyusdz root(../../)
set(EXAMPLE_TARGET "file_format_example")
set(TINYUSDZ_API_TUTORIAL_SOURCES
file-format-example.cc
)
add_executable(${EXAMPLE_TARGET} ${TINYUSDZ_API_TUTORIAL_SOURCES})
add_sanitizers(${EXAMPLE_TARGET})
target_include_directories(${EXAMPLE_TARGET} PRIVATE ${PROJECT_SOURCE_DIR}/src)
target_link_libraries(${EXAMPLE_TARGET} tinyusdz_static)
set_target_properties(${EXAMPLE_TARGET} PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")