summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
AgeCommit message (Collapse)Author
2024-02-26Prepare for OpenJPEG v2.5.1 releasev2.5.1Even Rouault
2024-02-13Always install pkgconfig filesMiloš Komarčević
They are supported on all platforms
2024-01-08Add cmake version fileDominik Wójt
2024-01-08CMake: drop support for cmake < 3.5Dominik Wójt
Compatibility for cmake version < 3.5 is now deprecated in cmake and specifing version below 3.5 in cmake_minimum_required produces a warning.[1] [1] https://cmake.org/cmake/help/latest/release/3.27.html#deprecated-and-removed-features
2023-09-24Require `stdint.h` & `inttypes.h`mayeut
With #1450 which goes with 480cc9d49775d018c19ce0e01f6be27858d63d39 "Remove support for non-C99 compilers (like VS2010) that don't support snprintf()", support for MSVC versions prior to vs2015 is dropped: https://stackoverflow.com/questions/2915672/snprintf-and-visual-studio-2010 This means that all supported MSVC versions do have `stdint.h` & `inttypes.h` now. For non windows platforms, those headers were already mandatory. Make them mandatory for all builds.
2023-03-09CMake: error out on warnings for strict/missing prototypes.Sebastian Rasmussen
And fix strict-prototypes/missing-prototypes warnings.
2022-08-11Make OpenJPEGConfig.cmake relocatable with CMake > 3.0Alex Richardson
Using CMakePackageConfigHelpers, we can generate a relocatable OpenJPEGConfig.config, using the PATH_VARS feature to make CMAKE_INSTALL_LIBDIR relative to the installed location. This change is needed for me when cross-compiling since CMAKE_INSTALL_FULL_LIBDIR is a path inside the sysroot rather than an absolute path to the actual includes. Without this change poppler ends up passing a -I flag that does not exist. This includes fallback code for CMake 2.8, which adds a bit of complexity, since I'm not sure if raising the minimum to 3.0 (now over 8 years old) is acceptable.
2022-08-07CMake: switch to GNUInstallDirs (#1424)Thomas Bracht Laumann Jespersen
* Add GNUInstallDirs for standard installation directories Distributions are given standard variables for already existing hooks. Multiarch libdirs is taken care of automagically. Raises minimum cmake version by a little. * Handle CMAKE_INSTALL_xxx being absolute paths for .pc file generation In some cases the CMAKE_INSTAL_{BIN,MAN,DOC,LIB,INCLUDE}DIR variables may turn out to be absolute paths in which case prepending ${prefix} in the pkg-config .pc files will result in incorrect values. For .pc file generation, figure out if these variables are absolute and omit the prefix in the configured file when so. See: https://github.com/OSGeo/PROJ/commit/ab25e4b7ed9544e668282dcd293cfaaa2e56dbdf
2022-05-13Prepare for 2.5.0 releasev2.5.0Even Rouault
2022-02-13CMakeLists.txt: do not set INSTALL_NAME_DIR for MacOS builds for CMake >= ↵Even Rouault
3.0 (fixes #1404)
2021-12-05Fix some typos (found by codespell)Stefan Weil
Signed-off-by: Stefan Weil <sw@weilnetz.de>
2021-06-08CMakeLists.txt/appveyor.yml: update version number to 2.5.0 to make it ↵Even Rouault
easier for downstream consumers to use new features
2021-06-01fix #1345: don't remove big endian test for other platformsMehdi Sabwat
thanks to @ePirat, it turns out that !EMSCRIPTEN does not evaluate to 1 on other platforms, so the the #1345 actually disabled the test for all platforms.
2021-05-07emscripten: disable big endian testMehdi Sabwat
This test should not run on the emscripten platform because of : https://github.com/emscripten-core/emscripten/blob/dff33368427fba16745c8ce52f11484a67b2855d/cmake/Modules/TestBigEndian.cmake#L5
2021-05-04Remove obsolete components JPWL, JP3D and MJ2Even Rouault
2021-01-04CMakeLists.txt: Don't require a C++ compilerPeter Korsgaard
By default, CMake assumes that the project is using both C and C++. By explicitly passing 'C' as argument of the project() macro, we tell CMake that only C is used, which prevents CMake from erroring out if a C++ compiler doesn't exist. Signed-off-by: Peter Korsgaard <peter@korsgaard.com> [Retrieved (and slightly updated by adding enable_language(CXX) if WITH_ASTYLE is set) from: https://git.buildroot.net/buildroot/tree/package/openjpeg/0003-CMakeLists.txt-Don-t-require-a-C-compiler.patch] Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
2020-12-28Prepare for v2.4.0v2.4.0Even Rouault
2020-05-20Add multithreaded support in the DWT encoder.Even Rouault
Update the bench_dwt utility to have a -decode/-encode switch Measured performance gains for DWT encoder on a Intel(R) Core(TM) i7-6700HQ CPU @ 2.60GHz (4 cores, hyper threaded) Encoding time: $ ./bin/bench_dwt -encode -num_threads 1 time for dwt_encode: total = 8.348 s, wallclock = 8.352 s $ ./bin/bench_dwt -encode -num_threads 2 time for dwt_encode: total = 9.776 s, wallclock = 4.904 s $ ./bin/bench_dwt -encode -num_threads 4 time for dwt_encode: total = 13.188 s, wallclock = 3.310 s $ ./bin/bench_dwt -encode -num_threads 8 time for dwt_encode: total = 30.024 s, wallclock = 4.064 s Scaling is probably limited by memory access patterns causing memory access to be the bottleneck. The slightly worse results with threads==8 than with thread==4 is due to hyperthreading being not appropriate here.
2019-04-02update for release 2.3.1Antonin Descampe
2019-04-02Update BUILD version for release 2.3.1Antonin Descampe
2017-10-14CMakeLists.txt: turn BUILD_PKGCONFIG_FILES ON by default on Windows if ↵Even Rouault
compiler is GCC
2017-10-03Preparing v2.3.0 releaseAntonin Descampe
2017-09-17Build: make sure that -DBUILD_SHARED_LIBS:bool=off is honoured to build only ↵Even Rouault
the static lib (#1019)
2017-09-01Sub-tile decoding: only allocate tile component buffer of the needed dimensionEven Rouault
Instead of being the full tile size. * Use a sparse array mechanism to store code-blocks and intermediate stages of IDWT. * IDWT, DC level shift and MCT stages are done just on that smaller array. * Improve copy of tile component array to final image, by saving an intermediate buffer. * For full-tile decoding at reduced resolution, only allocate the tile buffer to the reduced size, instead of the full-resolution size.
2017-08-09Preparing Release v2.2.0Antonin Descampe
2017-06-20Add bench_dwt program (compiled only if BUILD_BENCH_DWT=ON)Even Rouault
2017-05-23CMake: add stronger warnings for openjp2 lib/bin by default, and error out ↵Even Rouault
on declaration-after-statement And remove occurences of unused arguments in src/lib/openjp2
2017-05-09Add mechanisms to reformant and check code style (#128)Even Rouault
Use an internal version of astyle (astyle 3.0). Scripts taken from QGIS. astyle.options from https://github.com/uclouvain/openjpeg/issues/128 scripts/prepare-commit.sh can be used locally to automatically reformat edited files. Travis-CI will run scripts/verify-indentation.sh to verify committed files.
2016-09-28Update version number for future release 2.2.0Antonin Descampe
2016-09-26OPENJPEG_NAMESPACE is configurable by userMathieu Malaterre
2016-09-20Disable automatic compilation of t1_generate_lutsAntonin Descampe
Fix #831
2016-05-13Update version number in CMakeLists.txtAntonin Descampe
2016-05-02Use lowercase for cmake commands consistenlyJulien Malik
Inspired from https://github.com/InsightSoftwareConsortium/ITK/blob/master/Utilities/Maintenance/HowToCreateTheCMakeCaseConversion.txt This needs vim 7.3 and fails with vim 7.4 This also fixes a number of : - missing empty line at end of files - useless space at end of lines
2016-01-06Fix support of posix_memalign for LinuxStefan Weil
posix_memalign is only declared conditionally in stdlib.h, so add one of the possible definitions to get the declaration. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-11-01Fin compiler warningsmayeut
2015-10-18Merge pull request #637 from stweil/fixesMatthieu Darbois
Fix repository for JPEG2000 test data
2015-10-10do not use aligned_alloc since it requires c11Mathieu Malaterre
2015-10-09cleanup header file and move to implementationMathieu Malaterre
2015-09-29Fix repository for JPEG2000 test dataStefan Weil
The data is now maintained in a git repository on Github. Signed-off-by: Stefan Weil <sw@weilnetz.de>
2015-07-30better -ffast-math handlingRex Dieter
issue #488 See also http://public.kitware.com/pipermail/cmake/2015-April/060479.html
2014-11-25[trunk] removed warnings when configuring with CMake 3.x on MacOS (fixes ↵Matthieu Darbois
issue 443)
2014-10-15[trunk] Add option to call dsymutil on built binaries (fixes issue 409)Antonin Descampe
2014-09-19fixes install name id on OSX builds (fixes issue 367)Antonin Descampe
2014-04-28[trunk] properly handle pkg-config on non-UNIX hostsMathieu Malaterre
Fixes issue 340
2014-03-25[trunk] Import change from 2.0 branchMathieu Malaterre
2014-03-14[trunk] Mark OpenJPEG to be ABI incompatible with previous one, move to SONAME 7Mathieu Malaterre
Also declare this is 2.1.0 (or very close)
2014-02-28[trunk] Fix find_path behavior within cross-compilation executionMathieu Malaterre
2013-10-30trunk: fixed cmake config so as to be able to link opj_jpip_server with FCGI.Antonin Descampe
2013-10-15complete openjpeg2 pkgconfig support, bug #68Rex Dieter
2013-03-25[trunk] separate the opj_config file between public and private part to ↵Mickael Savinaud
avoid expose unused variables into the public API.