Documentation can no longer be installed with CMake

This commit is contained in:
Fabian Wolff 2016-03-15 23:11:11 +01:00
parent cfafb8608a
commit b26f60fb2b
2 changed files with 5 additions and 10 deletions

View File

@ -51,10 +51,6 @@ add_subdirectory(squirrel)
add_subdirectory(sqstdlib) add_subdirectory(sqstdlib)
add_subdirectory(sq) add_subdirectory(sq)
if(DEFINED INSTALL_DOC_DIR)
install(FILES doc/squirrel3.pdf doc/sqstdlib3.pdf DESTINATION ${INSTALL_DOC_DIR})
endif()
if(DEFINED INSTALL_INC_DIR) if(DEFINED INSTALL_INC_DIR)
set(SQ_PUB_HEADERS include/sqconfig.h set(SQ_PUB_HEADERS include/sqconfig.h
include/sqstdaux.h include/sqstdaux.h

11
COMPILE
View File

@ -33,7 +33,7 @@ under Linux, type something like
$ mkdir build # Create temporary build directory $ mkdir build # Create temporary build directory
$ cd build $ cd build
$ cmake .. # CMake will determine all the necessary information, $ cmake .. # CMake will determine all the necessary information,
# including the platform (32- vs. 64-Bit) # including the platform (32- vs. 64-bit)
$ make $ make
$ make install $ make install
$ cd ..; rm -r build $ cd ..; rm -r build
@ -51,12 +51,11 @@ can be specified. For instance,
$ cmake .. -DINSTALL_LIB_DIR=lib64 $ cmake .. -DINSTALL_LIB_DIR=lib64
will install the libraries into a 'lib64' subdirectory in the top will install the libraries into a 'lib64' subdirectory in the top
source directory. If INSTALL_DOC_DIR is set, the PDF documentation source directory. If INSTALL_INC_DIR is set, the public header files
will be installed into the directory the value of INSTALL_DOC_DIR will be installed into the directory the value of INSTALL_INC_DIR
points to. There is no default directory - if you want only the points to. There is no default directory - if you want only the
binaries and no documentation, just don't specify INSTALL_DOC_DIR, and binaries and no headers, just don't specify INSTALL_INC_DIR, and no
no documentation will be installed. The same applies for header files will be installed.
INSTALL_INC_DIR, which can install the public header files.
Under Windows, it is probably easiest to use the CMake GUI interface, Under Windows, it is probably easiest to use the CMake GUI interface,
although invoking CMake from the command line as explained above although invoking CMake from the command line as explained above