blob: 6464d32e6f3de73e4ba8bf07596a1bc8b3d4f45f (
plain)
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
71
72
73
74
75
76
77
|
include(${CMAKE_SOURCE_DIR}/cmake/SDL2.cmake)
include_directories( ${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c ${SDL2_INCLUDE_DIRS} )
add_library(
renderercommon STATIC
iqm.h
qgl.h
tr_common.h
tr_font.cpp
tr_image_bmp.cpp
tr_image_jpg.cpp
tr_image_pcx.cpp
tr_image_png.cpp
tr_image_tga.cpp
tr_noise.cpp
tr_public.h
tr_types.h
${CMAKE_CURRENT_SOURCE_DIR}/../sdl/sdl_gamma.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../sdl/sdl_glimp.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jaricom.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcapimin.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcapistd.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcarith.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jccoefct.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jccolor.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcdctmgr.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jchuff.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcinit.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcmainct.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcmarker.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcmaster.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcomapi.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcparam.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcprepct.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jcsample.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jctrans.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdapimin.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdapistd.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdarith.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdatadst.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdatasrc.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdcoefct.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdcolor.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jddctmgr.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdhuff.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdinput.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdmainct.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdmarker.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdmaster.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdmerge.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdpostct.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdsample.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jdtrans.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jerror.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jfdctflt.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jfdctfst.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jfdctint.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jidctflt.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jidctfst.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jidctint.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jmemmgr.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jmemnobs.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jquant1.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jquant2.c
${CMAKE_CURRENT_SOURCE_DIR}/../../external/jpeg-8c/jutils.c
)
add_definitions(
-DFLOATING_POINT
-DHAVE_LRINTF
-DUSE_INTERNAL_JPEG
-DUSE_RENDERER_DLOPEN
${SDL2_DEFINES}
)
target_link_libraries( renderercommon ${SDL2_LIBRARIES} )
|