- add_executable(am7xxx_mode_switch am7xxx_mode_switch.c)
- target_link_libraries(am7xxx_mode_switch ${LIBUSB_1_LIBRARIES})
- install(TARGETS am7xxx_mode_switch
- DESTINATION "${CMAKE_INSTALL_PREFIX}/bin")
+ add_executable(am7xxx-modeswitch am7xxx-modeswitch.c)
+ target_link_libraries(am7xxx-modeswitch ${LIBUSB_1_LIBRARIES})
+ install(TARGETS am7xxx-modeswitch
+ DESTINATION ${CMAKE_INSTALL_BINDIR})