-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
37 lines (32 loc) · 1.06 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
cmake_minimum_required(VERSION 3.6)
project(guetzli_lib)
set(CMAKE_CXX_STANDARD 11)
include_directories(
./
./third_party/butteraugli
)
set(guetzli_sources
guetzli/butteraugli_comparator.cc
guetzli/dct_double.cc
guetzli/debug_print.cc
guetzli/entropy_encode.cc
guetzli/fdct.cc
guetzli/gamma_correct.cc
guetzli/guetzli.cc
guetzli/idct.cc
guetzli/jpeg_data.cc
guetzli/jpeg_data_decoder.cc
guetzli/jpeg_data_encoder.cc
guetzli/jpeg_data_reader.cc
guetzli/jpeg_data_writer.cc
guetzli/jpeg_huffman_decode.cc
guetzli/output_image.cc
guetzli/preprocess_downsample.cc
guetzli/processor.cc
guetzli/quality.cc
guetzli/quantize.cc
guetzli/score.cc
third_party/butteraugli/butteraugli/butteraugli.cc)
set(SOURCE_FILES ${guetzli_sources} libguetzli.cpp libguetzli.h guetzli/entry_point.h)
set (CMAKE_SHARED_LINKER_FLAGS "-lpng -lgflags_nothreads -lz -lpthread")
add_library(guetzli_lib SHARED ${SOURCE_FILES})