way of doing this with autoconf, and with the default VS project files.
)
ENDIF(DONT_HAVE_GETOPT)
+# Do the proper thing when building static...if only there was configured
+# headers or def files instead
+IF(NOT BUILD_SHARED_LIBS)
+ ADD_DEFINITIONS(-DOPJ_STATIC)
+ENDIF(NOT BUILD_SHARED_LIBS)
+
# Headers file are located here:
INCLUDE_DIRECTORIES(
${OPENJPEG_SOURCE_DIR}/libopenjpeg
#include <tiffio.h>
#include <png.h>
#endif /* WIN32 */
-#include "openjpegConfigure.h"
#include "openjpeg.h"
#include "convert.h"
#include <stdlib.h>
#include <math.h>
-#include "openjpegConfigure.h"
#include "openjpeg.h"
#include "compat/getopt.h"
#include "convert.h"
#include <stdlib.h>
#include <math.h>
-#include "openjpegConfigure.h"
#include "openjpeg.h"
#include "j2k.h"
#include "jp2.h"
#include <stdlib.h>
#include <math.h>
-#include "openjpegConfigure.h"
#include "openjpeg.h"
#include "compat/getopt.h"
#include "convert.h"