Simple installation
PhoenixCMake can be installed with:
git clone https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixCMake.git
cd PhoenixCMake
mkdir build
cd build
cmake ..
make install
No compiler needed, just CMake and Make.
Self update
When installed, PhoenixCMake can update itself with phoenix_cmake_update.
This script will perform the same commands of chapter "Installation".
You can call:
Or:
To change the installation prefix.You can also use update_phoenixcmake:
Simple use
To be able to use PhoenixCMake you can use the find_package function:
Then, you can define your project (name, version, description, url):
find_package(PhoenixCMake REQUIRED)
phoenix_base_project("PhoenixCMake" "1.8.7"
"PhoenixCMake : set of function to simplify CMake use"
"https://gitlab.in2p3.fr/CTA-LAPP/PHOENIX_LIBS2/PhoenixCMake")
All these information will be gathered to simply create packages with cpack.