[CMAKE]
[reactos.git] / dll / 3rdparty / libjpeg / CMakeLists.txt
1
2 add_definitions(-DWIN32 -D_WINDOWS -D_MBCS -DJPEG_DLL)
3 add_definitions(-Dmain=mainptr)
4 add_definitions(-D_DLL -D__USE_CRTIMP)
5
6 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/libjpeg)
7 include_directories(${REACTOS_SOURCE_DIR}/include/reactos/libs/zlib)
8
9 add_library(libjpeg SHARED
10 jaricom.c
11 jcapimin.c
12 jcapistd.c
13 jcarith.c
14 jccoefct.c
15 jccolor.c
16 jcdctmgr.c
17 jchuff.c
18 jcinit.c
19 jcmainct.c
20 jcmarker.c
21 jcmaster.c
22 jcomapi.c
23 jcparam.c
24 jcprepct.c
25 jcsample.c
26 jctrans.c
27 jdapimin.c
28 jdapistd.c
29 jdarith.c
30 jdatadst.c
31 jdatasrc.c
32 jdcoefct.c
33 jdcolor.c
34 jddctmgr.c
35 jdhuff.c
36 jdinput.c
37 jdmainct.c
38 jdmarker.c
39 jdmaster.c
40 jdmerge.c
41 jdpostct.c
42 jdsample.c
43 jdtrans.c
44 jerror.c
45 jfdctflt.c
46 jfdctfst.c
47 jfdctint.c
48 jidctflt.c
49 jidctfst.c
50 jidctint.c
51 jquant1.c
52 jquant2.c
53 jutils.c
54 jmemmgr.c
55 jmemnobs.c)
56
57 set_entrypoint(libjpeg 0)
58
59 add_importlibs(libjpeg msvcrt)
60
61 add_dependencies(libjpeg psdk buildno_header)
62
63 add_cab_target(libjpeg 1)