openjpeg/applications/jpip/tools/indexer/CMakeLists.txt

33 lines
923 B
CMake
Raw Normal View History

2011-08-12 16:59:28 +02:00
SET(INDEXER_SRCS
${CMAKE_CURRENT_SOURCE_DIR}/j2k_to_idxjp2.c
${CMAKE_CURRENT_SOURCE_DIR}/cidx_manager.c
${CMAKE_CURRENT_SOURCE_DIR}/cio_ext.c
${CMAKE_CURRENT_SOURCE_DIR}/event_mgr_handler.c
${CMAKE_CURRENT_SOURCE_DIR}/idxjp2_manager.c
${CMAKE_CURRENT_SOURCE_DIR}/j2k_decoder.c
${CMAKE_CURRENT_SOURCE_DIR}/phix_manager.c
${CMAKE_CURRENT_SOURCE_DIR}/ppix_manager.c
${CMAKE_CURRENT_SOURCE_DIR}/thix_manager.c
${CMAKE_CURRENT_SOURCE_DIR}/tpix_manager.c
2011-08-12 16:59:28 +02:00
)
# Headers file are located here:
INCLUDE_DIRECTORIES(
${OPENJPEG_SOURCE_DIR}/libopenjpeg
)
2011-08-12 16:59:28 +02:00
# Build executable
ADD_EXECUTABLE(j2k_to_idxjp2 ${INDEXER_SRCS})
TARGET_LINK_LIBRARIES(j2k_to_idxjp2 ${OPENJPEG_LIBRARY_NAME})
2011-08-12 16:59:28 +02:00
# On unix you need to link to the math library:
IF(UNIX)
TARGET_LINK_LIBRARIES(j2k_to_idxjp2 m)
2011-08-12 16:59:28 +02:00
ENDIF(UNIX)
# Install exe
INSTALL(TARGETS j2k_to_idxjp2
2011-08-12 16:59:28 +02:00
EXPORT OpenJPEGTargets
DESTINATION ${OPENJPEG_INSTALL_BIN_DIR} COMPONENT Applications
)