X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FSMESH_I%2FCMakeLists.txt;h=132a76546171f1e86ad09d9dad97c3aae79091b7;hb=a4216ec9d08140fe31932b277938addc7e30af2f;hp=0fc7efbace5d282e8a54d3d587a6a56903e84f76;hpb=1bd4ba8acdfe7ab1edc96a016836e174a393d445;p=modules%2Fsmesh.git diff --git a/src/SMESH_I/CMakeLists.txt b/src/SMESH_I/CMakeLists.txt index 0fc7efbac..132a76546 100644 --- a/src/SMESH_I/CMakeLists.txt +++ b/src/SMESH_I/CMakeLists.txt @@ -1,9 +1,9 @@ -# Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2012-2015 CEA/DEN, EDF R&D, OPEN CASCADE # # This library is free software; you can redistribute it and/or # modify it under the terms of the GNU Lesser General Public # License as published by the Free Software Foundation; either -# version 2.1 of the License. +# version 2.1 of the License, or (at your option) any later version. # # This library is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of @@ -49,6 +49,10 @@ ADD_DEFINITIONS( ${BOOST_DEFINITIONS} ) +IF(WIN32) + ADD_DEFINITIONS(-DNOGDI) +ENDIF(WIN32) + # libraries to link to SET(_link_LIBRARIES ${Boost_LIBRARIES} @@ -76,6 +80,7 @@ SET(_link_LIBRARIES SMDS SMESHDS SMESHControls + MeshDriverMED ) # --- headers --- @@ -129,20 +134,10 @@ SET(SMESHEngine_SOURCES SMESH_PreMeshInfo.cxx ) -# bin programs -SET(SMESHEngine_bin_SOURCES - SMESHEngine.cxx -) - # --- rules --- ADD_LIBRARY(SMESHEngine ${SMESHEngine_SOURCES}) TARGET_LINK_LIBRARIES(SMESHEngine ${_link_LIBRARIES} ) INSTALL(TARGETS SMESHEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) -ADD_EXECUTABLE(SMESHEngine_bin ${SMESHEngine_bin_SOURCES}) -TARGET_LINK_LIBRARIES(SMESHEngine_bin ${_link_LIBRARIES}) -SET_TARGET_PROPERTIES(SMESHEngine_bin PROPERTIES OUTPUT_NAME "SMESHEngine") -INSTALL(TARGETS SMESHEngine_bin EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS}) - INSTALL(FILES ${SMESHEngine_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})