-
Notifications
You must be signed in to change notification settings - Fork 7
/
CMakeLists.txt
55 lines (41 loc) · 1.7 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Copyright (c) 2012-2016 Stefan Eilemann <[email protected]>
cmake_minimum_required(VERSION 3.1 FATAL_ERROR)
project(Pression VERSION 2.0.0)
set(Pression_VERSION_ABI 3)
list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/CMake
${CMAKE_SOURCE_DIR}/CMake/common)
if(NOT EXISTS ${CMAKE_SOURCE_DIR}/CMake/common/Common.cmake)
message(FATAL_ERROR "CMake/common missing, run: git submodule update --init")
endif()
set(DPUT_HOST "ppa:eilemann/equalizer-dev")
set(PRESSION_DESCRIPTION "Compressor, decompressor, uploader and downloader plugins")
set(PRESSION_MAINTAINER "Stefan Eilemann <[email protected]>")
set(PRESSION_LICENSE LGPL)
set(COMMON_PROJECT_DOMAIN ch.eyescale)
set(PRESSION_DEB_DEPENDS libboost-program-options-dev)
set(PRESSION_PORT_DEPENDS boost)
include(Common)
set(PRESSION_INCLUDE_NAME pression)
common_find_package(Boost REQUIRED COMPONENTS program_options)
common_find_package(Lunchbox REQUIRED)
common_find_package(OpenMP)
common_find_package_post()
set(PRESSION_DEPENDENT_LIBRARIES Lunchbox)
set(PRESSION_DEFINITIONS ${PRESSION_DEFINITIONS}
-DPRESSION_BUILD_DIR="${CMAKE_BINARY_DIR}/")
add_definitions(${PRESSION_DEFINITIONS})
if(APPLE)
# WAR needed when CMAKE_OSX_SYSROOT is set to find /usr/include/turbojpeg.h
include_directories(SYSTEM /usr/local/../include)
endif()
add_subdirectory(pression)
add_subdirectory(tests)
add_subdirectory(doc)
set(DOXYGEN_MAINPAGE_MD README.md)
set(DOXYGEN_EXTRA_INPUT ${PROJECT_SOURCE_DIR}/README.md)
include(DoxygenRule) # must be after all targets
include(CPackConfig)
set(CTEST_CUSTOM_WARNING_EXCEPTION ${CTEST_CUSTOM_WARNING_EXCEPTION}
# http://public.kitware.com/Bug/view.php?id=10179
"ld: warning: duplicate dylib")
include(CTest)