SET(MESHGEMSHOME $ENV{MESHGEMSHOME})
FIND_PATH(CADSURF_INCLUDES_DIR meshgems/cadsurf.h ${MESHGEMSHOME}/include)
-SET(CADSURF_INCLUDES)
-SET(CADSURF_INCLUDES ${CADSURF_INCLUDES} -I${CADSURF_INCLUDES_DIR})
+SET(MESHGEMS_CADSURF_INCLUDES)
+SET(MESHGEMS_CADSURF_INCLUDES ${MESHGEMS_CADSURF_INCLUDES} -I${CADSURF_INCLUDES_DIR})
SET(CADSURF_LIBS_PATHS)
SET(CADSURF_LIBS_PATHS ${CADSURF_LIBS_PATHS} ${MESHGEMSHOME}/lib)
FIND_LIBRARY(mg-precad mg-precad PATHS ${CADSURF_LIBS_PATHS})
FIND_LIBRARY(meshgems meshgems PATHS ${CADSURF_LIBS_PATHS})
-SET(CADSURF_LIBS)
-SET(CADSURF_LIBS ${CADSURF_LIBS} ${mg-cadsurf})
-SET(CADSURF_LIBS ${CADSURF_LIBS} ${mg-precad})
+SET(MESHGEMS_CADSURF_LIBS)
+SET(MESHGEMS_CADSURF_LIBS ${MESHGEMS_CADSURF_LIBS} ${mg-cadsurf})
+SET(MESHGEMS_CADSURF_LIBS ${MESHGEMS_CADSURF_LIBS} ${mg-precad})
IF(meshgems)
- SET(CADSURF_LIBS ${CADSURF_LIBS} ${meshgems})
+ SET(MESHGEMS_CADSURF_LIBS ${MESHGEMS_CADSURF_LIBS} ${meshgems})
ENDIF(meshgems)