rime / ibus-rime

【中州韻】Rime for Linux/IBus
https://rime.im
GNU General Public License v3.0
730 stars 105 forks source link

Allow installing using CMake #108

Closed jtojnar closed 3 years ago

jtojnar commented 3 years ago

Currently we are building this as

cmake <cmake flags> build # configure
cd build
make
cd ..
make install PREFIX=...

since install.sh or the top-level Makefile is not flexible enough for us.

Would it be possible to add install target to CMakeLists.txt? Then we could use the CMake-generated Makefile for both building and installation.

There would be an added benefit that it would concentrate all build and installation instructions in CMakeLists.txt and the top-level Makefile could just redirect the install target to the build/ directory like it already does with build.

lotem commented 3 years ago

install.sh is just for my own convenience while developing. I'll remove it.