Shortcut targets for companion & simulator on Linux

This commit is contained in:
Raphael Coeffic
2022-04-01 08:56:25 +02:00
parent 8a5b4b2473
commit 8320201e80
+3
View File
@@ -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})