9200772e7a2c59d4c967e5474fbeab277634b7e0
[openjpeg.git] / libopenjpeg / CMakeLists.txt
1 INCLUDE_REGULAR_EXPRESSION("^.*$")
2 # Defines the source code for the library
3 SET(OpenJPEG_SRCS
4   bio.c
5   cio.c
6   dwt.c
7   event.c
8   fix.c
9   image.c
10   int.c
11   j2k.c
12   j2k_lib.c
13   jp2.c
14   jpt.c
15   mct.c
16   mqc.c
17   openjpeg.c
18   pi.c
19   raw.c
20   t1.c
21   t2.c
22   tcd.c
23   tgt.c
24 )
25
26 # Pass proper definition to preprocessor to generate
27 # shared lib
28 IF(WIN32 AND BUILD_SHARED_LIBS)
29   ADD_DEFINITIONS(-DOPJ_EXPORTS)
30 ENDIF(WIN32 AND BUILD_SHARED_LIBS)
31
32 # Create the library
33 ADD_LIBRARY(${OPJ_PREFIX}openjpeg ${OpenJPEG_SRCS})
34
35 # Install library
36 INSTALL_TARGETS(/lib/ ${OPJ_PREFIX}openjpeg)
37