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