diff --git a/src/tint/CMakeLists.txt b/src/tint/CMakeLists.txt index 446c0d8b29..573c615799 100644 --- a/src/tint/CMakeLists.txt +++ b/src/tint/CMakeLists.txt @@ -415,7 +415,9 @@ function(tint_add_target TARGET KIND) elseif(${KIND} STREQUAL cmd) add_executable(${TARGET}) tint_default_compile_options(${TARGET}) + if(TINT_ENABLE_INSTALL) install(TARGETS "${TARGET}") + endif() elseif(${KIND} STREQUAL test_cmd) add_executable(${TARGET}) tint_test_cmd_compile_options(${TARGET}) @@ -744,3 +746,9 @@ if (TINT_ENABLE_INSTALL) install(FILES ${TINT_ROOT_SOURCE_DIR}/${TINT_HEADER_FILE} DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}/src/tint/${TINT_HEADER_DIR}) endforeach () endif() + +if(TINT_BUILD_CMD_TOOLS) + install(TARGETS tint_cmd_tint_cmd + RUNTIME DESTINATION bin + BUNDLE DESTINATION bin) +endif()