fixes opjviewer build
This commit is contained in:
parent
b8bd1b0e07
commit
c9ff4d3482
|
@ -4,17 +4,13 @@ find_package(wxWidgets REQUIRED)
|
|||
include(${wxWidgets_USE_FILE})
|
||||
|
||||
include_directories(
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/../..
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/..
|
||||
${OPENJPEG_SOURCE_DIR}/src/lib
|
||||
${OPENJPEG_SOURCE_DIR}/src/bin
|
||||
${OPENJPEG_SOURCE_DIR}/src/lib/openjp2
|
||||
${OPENJPEG_BINARY_DIR}/src/lib/openjp2 # opj_config.h and opj_config_private.h
|
||||
)
|
||||
|
||||
# original flags:
|
||||
# -DUSE_JPWL -DwxUSE_LIBOPENJPEG -DwxUSE_GUI=1 -DOPJ_STATIC -DOPJ_HTMLABOUT -DOPJ_INICONFIG -DUSE_JPSEC -DOPJ_MANYFORMATS
|
||||
add_definitions(-DwxUSE_LIBOPENJPEG -DOPENJPEG_VERSION="1.5.0")
|
||||
add_definitions(-DwxUSE_LIBOPENJPEG -DOPENJPEG_VERSION="${OPENJPEG_VERSION}")
|
||||
set(OPJV_SRCS
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/imagjpeg2000.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/source/wxj2kparser.cpp
|
||||
|
|
|
@ -106,8 +106,6 @@
|
|||
#include "wx/toolbar.h"
|
||||
#include "wx/artprov.h"
|
||||
|
||||
#include "openjp2/openjpeg.h"
|
||||
|
||||
//#include "imagj2k.h"
|
||||
//#include "imagjp2.h"
|
||||
//#include "imagmj2.h"
|
||||
|
|
|
@ -56,8 +56,6 @@
|
|||
#include "wx/module.h"
|
||||
#endif
|
||||
|
||||
#include "openjp2/openjpeg.h"
|
||||
|
||||
#include "wx/filefn.h"
|
||||
#include "wx/wfstream.h"
|
||||
|
||||
|
|
|
@ -49,7 +49,8 @@
|
|||
#if wxUSE_LIBOPENJPEG
|
||||
|
||||
#include "wx/image.h"
|
||||
#include "openjp2/openjpeg.h"
|
||||
#include "openmj2/openjpeg.h"
|
||||
#include "openmj2/event.h"
|
||||
#include "jp2/index.h"
|
||||
|
||||
#define wxBITMAP_TYPE_JPEG2000 50
|
||||
|
|
Loading…
Reference in New Issue