2016-11-04 11:31:19 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
2016-11-13 15:15:41 +01:00
|
|
|
|
2016-11-04 11:00:04 +01:00
|
|
|
project(libcaesium)
|
|
|
|
|
2016-11-13 14:43:54 +01:00
|
|
|
set(CMAKE_MACOSX_RPATH 1)
|
2016-11-16 09:41:46 +01:00
|
|
|
set(CMAKE_INSTALL_RPATH_USE_LINK_PATH TRUE)
|
2016-11-14 11:36:01 +01:00
|
|
|
|
2017-02-25 10:17:33 +01:00
|
|
|
# The version number.
|
|
|
|
set(VERSION_MAJOR 0)
|
2017-06-03 12:22:23 +02:00
|
|
|
set(VERSION_MINOR 3)
|
|
|
|
set(VERSION_PATCH 0)
|
2017-02-25 10:17:33 +01:00
|
|
|
|
|
|
|
configure_file(
|
|
|
|
"caesium/config.h.in"
|
|
|
|
"${PROJECT_BINARY_DIR}/config.h"
|
|
|
|
)
|
|
|
|
|
|
|
|
include_directories("${PROJECT_BINARY_DIR}")
|
2017-03-20 01:09:38 +01:00
|
|
|
if (NOT WIN32)
|
|
|
|
include_directories(/opt/mozjpeg/include)
|
|
|
|
|
|
|
|
if(EXISTS /opt/mozjpeg/lib64)
|
|
|
|
link_directories(/opt/mozjpeg/lib64)
|
|
|
|
else()
|
|
|
|
link_directories(/opt/mozjpeg/lib)
|
|
|
|
endif()
|
|
|
|
else ()
|
|
|
|
include_directories(C:\\mozjpeg\\include)
|
|
|
|
include_directories(C:\\zopfli\\src)
|
2017-03-17 10:49:15 +01:00
|
|
|
endif()
|
|
|
|
|
2016-11-04 11:00:04 +01:00
|
|
|
|
|
|
|
add_subdirectory(caesium)
|
2016-11-15 09:47:09 +01:00
|
|
|
add_subdirectory(demo)
|
|
|
|
|
|
|
|
|