X-Git-Url: https://main.carlh.net/gitweb/?a=blobdiff_plain;f=CMakeLists.txt;h=8cb57be74a4570b56bc0359cb1d739a43db1e714;hb=509f7a64eabef4e5ce4927a2ef9f7316aa2b5c23;hp=1c8b85341fb808da640fd1af53ecee6632bdffcd;hpb=8dbd92f6c246f9eb27e86d0c97038b21766448ef;p=openjpeg.git diff --git a/CMakeLists.txt b/CMakeLists.txt index 1c8b8534..8cb57be7 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -143,6 +143,13 @@ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in @ONLY IMMEDIATE) ENDIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/openjpeg_mangle.h.in) +#----------------------------------------------------------------------------- +# Translate CMake configuration options into #defines that can be queried from +# the code. +CONFIGURE_FILE( + ${PROJECT_SOURCE_DIR}/openjpegConfigure.h.in + ${PROJECT_BINARY_DIR}/openjpegConfigure.h) + #----------------------------------------------------------------------------- # Always build the library INCLUDE_DIRECTORIES(BEFORE ${CMAKE_CURRENT_BINARY_DIR})