From: Frederic Pons Date: Mon, 18 Mar 2024 15:49:09 +0000 (+0100) Subject: Use DXF_ROOT_DIR to detect DXF library X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=50a0781b4a59606806342f83b1aaf12b7810ce1a;p=modules%2Fshaper.git Use DXF_ROOT_DIR to detect DXF library --- diff --git a/CMakeCommon/FindDXF.cmake b/CMakeCommon/FindDXF.cmake index 71c7c9708..9fea86aa5 100644 --- a/CMakeCommon/FindDXF.cmake +++ b/CMakeCommon/FindDXF.cmake @@ -14,7 +14,7 @@ # #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}) diff --git a/src/DXFPlugin/CMakeLists.txt b/src/DXFPlugin/CMakeLists.txt index 94e846383..6d23d998d 100644 --- a/src/DXFPlugin/CMakeLists.txt +++ b/src/DXFPlugin/CMakeLists.txt @@ -40,7 +40,7 @@ SET(XML_RESOURCES plugin-DXF.xml ) -MESSAGE(STATUS "${DXF_DIR} CHHHHHEEE") +MESSAGE(STATUS "DXF component found: ${DXF_DIR}") INCLUDE_DIRECTORIES( ../Config ../Events @@ -53,9 +53,7 @@ INCLUDE_DIRECTORIES( ../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}) @@ -66,12 +64,11 @@ SET(PROJECT_LIBRARIES 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)