[CMake] CPack : OS X package installation directory

Yngve Inntjore Levinsen yngve.levinsen at gmail.com
Wed Dec 28 18:24:25 EST 2011


Hi,

Søndag 25. desember 2011 20.32.41 skrev Nicholas Yue:
> Hi,
> 
>      I would like to package up my software to install (via DMG and PKG)
> to the /Applications/<my-software> directory
> 
Is the variable CMAKE_INSTALL_PREFIX what you are looking for? Have a look at:
cmake --help-variable CMAKE_INSTALL_PREFIX

>      How should one configure CMakeLists.txt INSTALL and CPack variable
> to install software in the above location i.e. /Applications/<my-software>
> 
>      Also, is there a way to check the installation without actually
> doing the full installation steps e.g. is there some flags/files to
> check the installation directory after the DMG/PKG is created ?
>
"make -n" works at least, and likewise e.g. "ctest -N" (n/N means dry-run I 
believe).  You could try "make install -n" at least to see where make is 
moving stuff. Unsure if cpack has something similar.
> Regards

Cheers,
Yngve


More information about the CMake mailing list