forked from hoehrmann/pngwolf
-
Notifications
You must be signed in to change notification settings - Fork 4
/
CMakeLists.txt
executable file
·70 lines (63 loc) · 1.74 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
cmake_minimum_required(VERSION 2.8.6)
project(pngwolf)
find_package(OpenMP)
if(OPENMP_FOUND)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} ${OpenMP_C_FLAGS}")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} ${OpenMP_CXX_FLAGS}")
endif()
add_definitions(-DZLIB_CONST)
if(MSVC)
add_definitions(/D_CRT_SECURE_NO_WARNINGS)
elseif(CMAKE_COMPILER_IS_GNUCXX)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
elseif(CMAKE_CXX_COMPILER_ID MATCHES "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++14")
endif()
include_directories(galib libdeflate libdeflate/common zlib zopfli/src/zopfli)
add_executable(pngwolf
pngwolf.cxx
galib/ga/GA1DArrayGenome.C
galib/ga/GAAllele.C
galib/ga/GABaseGA.C
galib/ga/gabincvt.C
galib/ga/GAGenome.C
galib/ga/GAIncGA.C
galib/ga/GAParameter.C
galib/ga/GAPopulation.C
galib/ga/garandom.C
galib/ga/gaerror.C
galib/ga/GAScaling.C
galib/ga/GASelector.C
galib/ga/GAStatistics.C
libdeflate/lib/adler32.c
libdeflate/lib/aligned_malloc.c
libdeflate/lib/deflate_compress.c
libdeflate/lib/x86_cpu_features.c
libdeflate/lib/zlib_compress.c
zlib/adler32.c
zlib/compress.c
zlib/crc32.c
zlib/deflate.c
zlib/infback.c
zlib/inffast.c
zlib/inflate.c
zlib/inftrees.c
zlib/trees.c
zlib/uncompr.c
zlib/zutil.c
zopfli/src/zopfli/blocksplitter.c
zopfli/src/zopfli/cache.c
zopfli/src/zopfli/deflate.c
zopfli/src/zopfli/gzip_container.c
zopfli/src/zopfli/hash.c
zopfli/src/zopfli/katajainen.c
zopfli/src/zopfli/lz77.c
zopfli/src/zopfli/squeeze.c
zopfli/src/zopfli/tree.c
zopfli/src/zopfli/util.c
zopfli/src/zopfli/zlib_container.c
zopfli/src/zopfli/zopfli_lib.c
)
if(WIN32)
target_link_libraries(pngwolf ws2_32)
endif()