X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FDDS%2FCMakeLists.txt;h=58279d66b93b1847ba3d36791e3448b550528c0c;hb=e6caa123c65e3c4a3017364ec5bb4225fd898465;hp=79fe985f8093583b9dac133ee1e760003462fd6b;hpb=8c5294030a4c11ca0a18be48fc0165466861adad;p=modules%2Fgui.git diff --git a/src/DDS/CMakeLists.txt b/src/DDS/CMakeLists.txt index 79fe985f8..58279d66b 100755 --- a/src/DDS/CMakeLists.txt +++ b/src/DDS/CMakeLists.txt @@ -1,4 +1,4 @@ -# Copyright (C) 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE +# Copyright (C) 2007-2015 CEA/DEN, EDF R&D, OPEN CASCADE # # Copyright (C) 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, # CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS @@ -6,7 +6,7 @@ # 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 @@ -20,12 +20,33 @@ # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com # +# --- options --- + +# additional include directories INCLUDE_DIRECTORIES( - ${PTHREAD_INCLUDE_DIRS} ${CAS_INCLUDE_DIRS} - ${KERNEL_ROOT_DIR}/include/salome ) +# additional preprocessor / compiler flags +ADD_DEFINITIONS(${CAS_DEFINITIONS}) + +# libraries to link to +SET(_link_LIBRARIES ${CAS_KERNEL} ${CAS_OCAF}) + +# --- headers --- + +# header files / to install +SET(DDS_HEADERS + DDS.h + DDS_DicGroup.h + DDS_DicItem.h + DDS_Dictionary.h + DDS_KeyWords.h +) + +# --- sources --- + +# sources / static SET(DDS_SOURCES DDS_DicGroup.cxx DDS_DicItem.cxx @@ -33,11 +54,11 @@ SET(DDS_SOURCES DDS_KeyWords.cxx ) -ADD_LIBRARY(DDS SHARED ${DDS_SOURCES}) -SET_TARGET_PROPERTIES(DDS PROPERTIES COMPILE_FLAGS "${CAS_DEFINITIONS} ${PLATFORM_DEFINITIONS}") -TARGET_LINK_LIBRARIES(DDS ${CAS_KERNEL} ${CAS_OCAF}) -INSTALL(TARGETS DDS DESTINATION ${GUI_salomelib_LIBS}) +# --- rules --- + +ADD_LIBRARY(DDS ${DDS_SOURCES}) +TARGET_LINK_LIBRARIES(DDS ${_link_LIBRARIES}) +INSTALL(TARGETS DDS EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS}) -FILE(GLOB COMMON_HEADERS_H "${CMAKE_CURRENT_SOURCE_DIR}/*.h") -INSTALL(FILES ${COMMON_HEADERS_H} DESTINATION ${GUI_salomeinclude_HEADERS}) +INSTALL(FILES ${DDS_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})