mirror of
https://github.com/lighttransport/tinyusdz.git
synced 2026-01-18 01:11:17 +01:00
16 lines
508 B
CMake
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}")
|