Skip to content

Commit

Permalink
cmake: set /opt/snapshot as the default install prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
BartSte committed Feb 17, 2024
1 parent 36d36d9 commit efe7243
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)

set(CMAKE_INSTALL_PREFIX /opt/${PROJECT_NAME})
set(CPACK_PACKAGE_NAME ${PROJECT_NAME})
set(CPACK_PACKAGE_VERSION ${PROJECT_VERSION_FULL})
set(CPACK_GENERATOR "TGZ")
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,15 @@ online installer of Qt which is included in this project. Do the following:
```

- TODO: test installing the project for both static and shared qt builds.
- TODO: explain why `/opt` is used instead of `/usr/local`:
- `/opt` is for self contained packages. This way, libs and bins are not
migled with those in local.
- Can be easily uninstalled by removing the `/opt/snapshot` directory +
symlink.
- This way, I can keep the tarball and the `cmake --install` identical to
each other.
- TODO: make a symlonk from `/opt/snapshot/run_snapshot` to
`/usr/local/bin/snapshot`

#### Building

Expand Down

0 comments on commit efe7243

Please sign in to comment.