Comment 2 for bug 423556

Revision history for this message
Bob Tanner (tanner) wrote : Re: [cmake] No "make install" targe

INSTALL()

    Any target included within an INSTALL command will be executed when the user executes make install. So in short, it is an install hook for any target that the user wishes to install. Originally, CMake had several different INSTALL_<target_type>() commands. As of CMake Version 2.6, they have consolidated all of these forms into one command giving this function a considerable amount of complexity:

    INSTALL( TARGETS target [ target1 target2 ...]
                  [ RUNTIME DESTINATION path |
                    LIBRARY DESTINATION lib_path |
                    ARCHIVE DESTINATION arch_path ] )

    NOTE: Any path is automatically prefixed by CMAKE_INSTALL_PREFIX.

    TARGETS, RUNTIME, LIBRARY, ARCHIVE, and DESTINATION are all directives/labels that CMAKE uses internally. When a target is created it is given a property label automatically by CMake if it is created using one of the standard ADD_<type>() commands.

        * ADD_EXECUTABLE( target ...): The target is labeled as RUNTIME.
        * ADD_LIBRARY( target ...): The target is labeled as a LIBRARY.