Fix UNIX-like system installation script (#2232)

main
mousepotato 3 years ago committed by GitHub
parent 19dc566889
commit 056139269e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -85,7 +85,7 @@ $ mkdir build && cd build # Create a build directory
$ cmake -DCMAKE_BUILD_TYPE=Release .. # Configure the project with CMake $ cmake -DCMAKE_BUILD_TYPE=Release .. # Configure the project with CMake
$ cmake --build . # Compile the project $ cmake --build . # Compile the project
$ ctest --verbose # Run tests $ ctest --verbose # Run tests
$ cmake --install # Run the install target (install library, public headers, application and CMake files) $ cmake --install . # Run the install target (install library, public headers, application and CMake files)
``` ```
This will install the library into the "standard locations". The library will be installed in `/usr/local/lib`, executables (including the exiv2 command-line program) in `/usr/local/bin/` and header files in `/usr/local/include/exiv2`. The target directory for the installation can be modified by using the CMake option `-DCMAKE_INSTALL_PREFIX`. This will install the library into the "standard locations". The library will be installed in `/usr/local/lib`, executables (including the exiv2 command-line program) in `/usr/local/bin/` and header files in `/usr/local/include/exiv2`. The target directory for the installation can be modified by using the CMake option `-DCMAKE_INSTALL_PREFIX`.

Loading…
Cancel
Save