From 8320201e805dd9590789b4f354a71f34542c5573 Mon Sep 17 00:00:00 2001 From: Raphael Coeffic Date: Wed, 30 Mar 2022 18:21:53 +0200 Subject: [PATCH] Shortcut targets for companion & simulator on Linux --- companion/src/CMakeLists.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/companion/src/CMakeLists.txt b/companion/src/CMakeLists.txt index f24046aea..2e86ebae0 100644 --- a/companion/src/CMakeLists.txt +++ b/companion/src/CMakeLists.txt @@ -383,6 +383,9 @@ if(${CMAKE_SYSTEM_NAME} MATCHES "Linux") install(FILES ../targets/linux/45-usbasp.rules DESTINATION ${INSTALL_TEMP_LIB_PFX}lib/udev/rules.d RENAME 45-companion${C9X_NAME_SUFFIX}-usbasp.rules) # Linux specific code set(OperatingSystem "Linux") + # Shortcut target + add_custom_target(companion DEPENDS ${COMPANION_NAME}) + add_custom_target(simulator DEPENDS ${SIMULATOR_NAME}) elseif(WIN32) set(INSTALL_DESTINATION "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/${CMAKE_BUILD_TYPE}") message(STATUS "Install to " ${INSTALL_DESTINATION})