This commit is contained in:
Matteo Paonessa 2017-03-18 22:15:40 +01:00
parent d61b709702
commit 966ea47489
4 changed files with 13 additions and 9 deletions

View File

@ -8,7 +8,7 @@ compiler:
- clang - clang
before_install: before_install:
- sudo apt-get install libtool autoconf git nasm pkg-config cmake libtiff-dev - sudo apt-get install libtool autoconf git nasm pkg-config cmake
- chmod +x install.sh - chmod +x install.sh
- ./install.sh - ./install.sh

View File

@ -7,8 +7,8 @@ set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
# The version number. # The version number.
set(VERSION_MAJOR 0) set(VERSION_MAJOR 0)
set(VERSION_MINOR 3) set(VERSION_MINOR 2)
set(VERSION_PATCH 1) set(VERSION_PATCH 2)
configure_file( configure_file(
"caesium/config.h.in" "caesium/config.h.in"

View File

@ -17,13 +17,15 @@ target_include_directories(caesium PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
# OSX installs in local # OSX installs in local
if (APPLE) if (APPLE)
install(FILES caesium.h DESTINATION /usr/local/include)
install(TARGETS LIBRARY DESTINATION /usr/local/lib)
install(TARGETS ARCHIVE DESTINATION /usr/local/lib)
elseif (UNIX)
install(FILES caesium.h DESTINATION /usr/include) install(FILES caesium.h DESTINATION /usr/include)
install(TARGETS LIBRARY DESTINATION /usr/lib) install(TARGETS caesium caesium_static
install(TARGETS ARCHIVE DESTINATION /usr/lib) LIBRARY DESTINATION /usr/local/lib
ARCHIVE DESTINATION /usr/local/lib)
elseif (UNIX OR LINUX)
install(FILES caesium.h DESTINATION /usr/include)
install(TARGETS caesium caesium_static
LIBRARY DESTINATION /usr/lib
ARCHIVE DESTINATION /usr/lib)
else () else ()
install(FILES caesium.h DESTINATION include) install(FILES caesium.h DESTINATION include)
install(TARGETS caesium caesium_static install(TARGETS caesium caesium_static

2
install.sh Normal file → Executable file
View File

@ -9,6 +9,8 @@ mkdir build && cd build
../configure ../configure
make && sudo make install make && sudo make install
cd
#zopflipng #zopflipng
git clone https://github.com/google/zopfli.git git clone https://github.com/google/zopfli.git
cd zopfli cd zopfli