Hi,
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake) find_package(MathGL REQUIRED)
It seems, that the version info is since 1.11 not anymore in config.h but in define.h with #define MGL_VER2 1.0.
Normally the step in cmakelists.txt are: find_package(MathGL 1.11 GLUT REQUIRED) include_directories(${MATHGL_INCLUDE_DIRS}) add_executable(myexe main.cpp) target_link_libraries(myexe ${MATHGL_LIBRARIES})
for 1.11 (I'm using 2.1 because of an older cmake version in my system.)
Anonymous
You seem to have CSS turned off. Please don't fill out this field.
You can try https://sourceforge.net/p/mathgl/code/HEAD/tree/mathgl-2x/FindMathGL2.cmake . But I haven't tested it yet.
Hi,
has anybody the plotting library MathGl included into the CMake process? Under https://groups.google.com/forum/#!topic/mathgl/3MFOIqTsyKE I found a FindMathGL.cmake which I evoked in cmakelist.txt:
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(MathGL REQUIRED)
It stops with: CMake Error at function/safety_trajectoryplanning_conti/ros/cmake/FindMathGL.cmake:67 (MESSAGE): Cannot determine MathGL version: mgl2/config.h parse error -- Configuring incomplete, errors occurred!
It seems, that the version info is since 1.11 not anymore in config.h but in define.h with #define MGL_VER2 1.0.
Normally the step in cmakelists.txt are:
find_package(MathGL 1.11 GLUT REQUIRED)
include_directories(${MATHGL_INCLUDE_DIRS})
add_executable(myexe main.cpp)
target_link_libraries(myexe ${MATHGL_LIBRARIES})
for 1.11 (I'm using 2.1 because of an older cmake version in my system.)
You can try https://sourceforge.net/p/mathgl/code/HEAD/tree/mathgl-2x/FindMathGL2.cmake . But I haven't tested it yet.