1 INCLUDE_REGULAR_EXPRESSION("^.*$")
2 # Defines the source code for the library
26 # Prepare the .def file (Module definition)
27 # depending on wether we are:
28 # 1. Building a dll (shared lib)
29 # 2. Wether we are using cl or bcc32 (underscore convention)
30 IF(WIN32 AND BUILD_SHARED_LIBS)
32 # Borland expect symbol to start with _
36 # Borland will by default use a .def file if present in
37 # the binary directory
39 ${OPENJPEG_SOURCE_DIR}/libopenjpeg/openjpeg.def.in
40 ${OPENJPEG_BINARY_DIR}/libopenjpeg/openjpeg.def
43 # You can directly pass a .def file to cl this is
46 SET(OpenJPEG_SRCS ${OpenJPEG_SRCS}
47 ${OPENJPEG_BINARY_DIR}/libopenjpeg/openjpeg.def
50 ENDIF(WIN32 AND BUILD_SHARED_LIBS)
53 ADD_LIBRARY(${OPJ_PREFIX}openjpeg ${OpenJPEG_SRCS})
56 INSTALL_TARGETS(/lib/ ${OPJ_PREFIX}openjpeg)