ENH: Including the new header file openjpegConfigure.h
[openjpeg.git] / CMakeLists.txt
index 14ec7ea232827895edb542c6fd944954e55f73be..8cb57be74a4570b56bc0359cb1d739a43db1e714 100644 (file)
@@ -143,19 +143,24 @@ 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})
 SUBDIRS(
   libopenjpeg
   mj2
-  # cmake 2.4.5 has poor java support
-  #j2kviewer/src
+  jpwl
   )
 
 IF(NOT UNIX)
 SUBDIRS(
-  jpwl
   jp3d
   indexer_JPIP
   )