2012-10-15 11:44:34 +02:00
|
|
|
# openjp3d
|
|
|
|
include_regular_expression("^.*$")
|
2012-09-28 10:32:34 +02:00
|
|
|
|
2012-10-15 11:44:34 +02:00
|
|
|
include_directories(
|
|
|
|
${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h
|
|
|
|
)
|
2012-09-28 10:32:34 +02:00
|
|
|
|
|
|
|
SET(OPENJP3D_LIBRARY_NAME openjp3d)
|
|
|
|
# Defines the source code for the library
|
|
|
|
SET(OPENJP3D_SRCS
|
2012-10-15 11:44:34 +02:00
|
|
|
bio.c cio.c dwt.c event.c jp3d.c jp3d_lib.c mct.c mqc.c openjp3d.c
|
|
|
|
pi.c raw.c t1.c t1_3d.c t2.c tcd.c tgt.c volume.c
|
2012-09-28 10:32:34 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
# Build the library
|
2012-10-15 11:44:34 +02:00
|
|
|
if(WIN32)
|
|
|
|
if(BUILD_SHARED_LIBS)
|
|
|
|
add_definitions(-DOPJ_EXPORTS)
|
|
|
|
else()
|
|
|
|
add_definitions(-DOPJ_STATIC)
|
|
|
|
endif()
|
|
|
|
endif()
|
2012-09-28 10:32:34 +02:00
|
|
|
|
|
|
|
# build jp3d lib:
|
2012-10-15 11:44:34 +02:00
|
|
|
add_library(${OPENJP3D_LIBRARY_NAME} ${OPENJP3D_SRCS})
|
|
|
|
if(UNIX)
|
|
|
|
target_link_libraries(${OPENJP3D_LIBRARY_NAME} m)
|
|
|
|
endif()
|
|
|
|
set_target_properties(${OPENJP3D_LIBRARY_NAME} PROPERTIES ${OPENJPEG_LIBRARY_PROPERTIES})
|
2012-09-28 10:32:34 +02:00
|
|
|
|
|
|
|
# Install library
|
2012-10-15 11:44:34 +02:00
|
|
|
install(TARGETS ${OPENJP3D_LIBRARY_NAME}
|
2012-09-28 10:32:34 +02:00
|
|
|
EXPORT OpenJP3DTargets
|
|
|
|
DESTINATION ${OPENJPEG_INSTALL_LIB_DIR}
|
|
|
|
COMPONENT Libraries
|
|
|
|
)
|
|
|
|
|
|
|
|
# Install includes files
|
2012-10-15 11:44:34 +02:00
|
|
|
install(FILES openjp3d.h
|
2012-10-15 09:52:07 +02:00
|
|
|
DESTINATION ${OPENJPEG_INSTALL_INCLUDE_DIR}
|
2012-09-28 10:32:34 +02:00
|
|
|
COMPONENT Headers
|
|
|
|
)
|