raspberrypi / picotool

BSD 3-Clause "New" or "Revised" License
555 stars 95 forks source link

Add cmake install command #35

Closed markuspi closed 2 years ago

markuspi commented 3 years ago

Add an install rule to CMakeLists.txt to support make install. Will copy the picotool executable to ${CMAKE_INSTALL_PREFIX}/bin/. As per documentation, the install prefix defaults to /usr/local on unix and c:/Program Files/${PROJECT_NAME} on windows.

A custom prefix can be defined using cmake -DCMAKE_INSTALL_PREFIX:PATH=/path/to/prefix ..

Successfully tested on ubuntu.

Resolves #4

kilograham commented 2 years ago

added via separate PR