*.zip
# generated code
-config.h
+nlopt_config.h
nlopt.pc
api/nlopt.f
api/nlopt.hpp
message (STATUS "NLopt version ${NLOPT_VERSION_STRING}")\r
\r
#==============================================================================\r
-# CREATE config.h\r
+# CREATE nlopt_config.h\r
#==============================================================================\r
\r
-configure_file (${CMAKE_CURRENT_SOURCE_DIR}/config.cmake.h.in ${CMAKE_CURRENT_BINARY_DIR}/config.h IMMEDIATE)\r
+configure_file (${CMAKE_CURRENT_SOURCE_DIR}/nlopt_config.h.in ${CMAKE_CURRENT_BINARY_DIR}/nlopt_config.h IMMEDIATE)\r
\r
# pkgconfig file\r
if (UNIX OR MINGW)\r
PATHS "${OCTAVE_INCLUDE_PATHS}/.."
)
-set (OCTAVE_INCLUDE_DIRS ${OCTAVE_INCLUDE_DIR})
+set (OCTAVE_INCLUDE_DIRS ${OCTAVE_INCLUDE_DIR} ${OCTAVE_INCLUDE_DIR}/octave)
macro (octave_add_oct FUNCTIONNAME)
#include <math.h>
#include "testfuncs.h"
-#include "config.h"
+#include "nlopt_config.h"
#define UNUSED(x) (void) x
#include <math.h>
#include <string.h>
-#include "config.h"
+#include "nlopt_config.h"
#ifdef HAVE_UNISTD_H
# include <unistd.h>
#include <stdlib.h>
#include <stdarg.h>
#include <math.h>
-#include "config.h"
+#include "nlopt_config.h"
#include "nlopt.h"
#include <time.h>
#include "redblack.h"
-#include "config.h"
+#include "nlopt_config.h"
/* workaround for Solaris + gcc 3.4.x bug (see configure.ac) */
#if defined(__GNUC__) && defined(REPLACEMENT_HUGE_VAL)
# undef HUGE_VAL