#
#path to DXF component dir
-set(DXF_DIR "D:/C/SALOME-master/W64/DXF")
+SET(DXF_DIR $ENV{DXF_ROOT_DIR})
if(EXISTS ${DXF_DIR})
set(CMAKE_PREFIX_PATH ${DXF_DIR}/cmake ${CMAKE_PREFIX_PATH})
plugin-DXF.xml
)
-MESSAGE(STATUS "${DXF_DIR} CHHHHHEEE")
+MESSAGE(STATUS "DXF component found: ${DXF_DIR}")
INCLUDE_DIRECTORIES(
../Config
../Events
../SketchAPI
../SketchPlugin
${OpenCASCADE_INCLUDE_DIR}
- #${PRODUCTS_INCLUDE_DIR}
- #${DXF_DIR}/include/products
- D:/C/SALOME-master/W64/DXF/inc
+ ${DXF_DIR}/include/products
)
SOURCE_GROUP ("XML Files" FILES ${XML_RESOURCES})
GeomAPI
GeomAlgoAPI
Locale
- #${DXF_DIR}/lib
- D:/C/SALOME-master/W64/DXF/win64/vc14/lib/TKXSDRAWDXF.lib
- D:/C/SALOME-master/W64/DXF/win64/vc14/lib/TKXDEDXF.lib
- D:/C/SALOME-master/W64/DXF/win64/vc14/lib/TKDXF.lib
- D:/C/SALOME-master/W64/DXF/win64/vc14/lib/TKXDEACIS.lib
- D:/C/SALOME-master/W64/DXF/win64/vc14/lib/TKACIS.lib
+ ${DXF_DIR}/lib/libTKXSDRAWDXF.so
+ ${DXF_DIR}/lib/libTKXDEDXF.so
+ ${DXF_DIR}/lib/libTKDXF.so
+ ${DXF_DIR}/lib/libTKXDEACIS.so
+ ${DXF_DIR}/lib/libTKACIS.so
)
ADD_DEFINITIONS(-DDXFPLUGIN_EXPORTS)