-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
56 lines (47 loc) · 1.54 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
cmake_minimum_required(VERSION 3.14)
project(IIW C)
set(CMAKE_C_STANDARD 99)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -lMagickWand-6.Q16 -lMagickCore-6.Q16 -DMAGICKCORE_HDRI_ENABLE=0 -DMAGICKCORE_QUANTUM_DEPTH=16")
set(ImageMagick_FOUND ${IMAGEMAGICK_FOUND})
include_directories("/usr/include/ImageMagick-6/")
include_directories("/usr/include/x86_64-linux-gnu/ImageMagick-6/")
add_executable(IIW
main.c
utils.c
byteFlowHanlder.c
errorHandler.c
httpHandler.c
const.h
cache/cache.c
cache/cache.h
cache/image_mdf.c
cache/image_mdf.h
log/log.c
log/log.h
log/get_time.h
log/get_time.c
deviceDetection/51DegreesWorker.c
deviceDetection/51DegreesWorker.h
Device-Detection-3.2.20.4/src/pattern/51Degrees.h
Device-Detection-3.2.20.4/src/pattern/51Degrees.c
Device-Detection-3.2.20.4/src/threading.h
Device-Detection-3.2.20.4/src/threading.c
Device-Detection-3.2.20.4/src/cityhash/city.c
Device-Detection-3.2.20.4/src/cityhash/city.h deviceDetection/mbInfoStruct.h)
FIND_PACKAGE(ImageMagick
REQUIRED
COMPONENTS MagickWand
)
find_package (Threads)
INCLUDE_DIRECTORIES(
${Boost_INCLUDE_DIR}
${ImageMagick_INCLUDE_DIRS}
${ImageMagick_MagickWand_INCLUDE_DIRS}
)
TARGET_LINK_LIBRARIES(IIW
${Boost_LIBRARIES}
${CURL_LIBRARIES}
${ImageMagick_LIBRARIES}
${ImageMagick_MagickWand_LIBRARY}
${CMAKE_THREAD_LIBS_INIT}
m)