2012-08-30 19:14:39 +02:00
|
|
|
project(viewer CXX)
|
2012-03-02 10:47:55 +01:00
|
|
|
|
2012-08-30 19:14:39 +02:00
|
|
|
find_package(wxWidgets REQUIRED)
|
|
|
|
include(${wxWidgets_USE_FILE})
|
2012-03-02 10:47:55 +01:00
|
|
|
|
2012-08-30 19:14:39 +02:00
|
|
|
include_directories(
|
2012-03-02 10:47:55 +01:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/..
|
|
|
|
)
|
|
|
|
|
|
|
|
# original flags:
|
|
|
|
# -DUSE_JPWL -DwxUSE_LIBOPENJPEG -DwxUSE_GUI=1 -DOPJ_STATIC -DOPJ_HTMLABOUT -DOPJ_INICONFIG -DUSE_JPSEC -DOPJ_MANYFORMATS
|
2012-08-30 19:14:39 +02:00
|
|
|
add_definitions(-DwxUSE_LIBOPENJPEG -DOPENJPEG_VERSION="1.5.0")
|
|
|
|
set(OPJV_SRCS
|
2012-03-02 10:47:55 +01:00
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/imagjpeg2000.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/wxj2kparser.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/OPJViewer.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/wxjp2parser.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/OPJDialogs.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/OPJThreads.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/source/OPJAbout.cpp
|
|
|
|
${CMAKE_CURRENT_SOURCE_DIR}/../codec/index.c
|
|
|
|
)
|
2012-08-30 19:14:39 +02:00
|
|
|
add_executable(opjviewer ${OPJV_SRCS})
|
|
|
|
target_link_libraries(opjviewer ${wxWidgets_LIBRARIES} openjpeg)
|