-# Copyright (C) 2012-2013 CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2016 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
#
INCLUDE_DIRECTORIES(
- ${PTHREAD_INCLUDE_DIRS}
+ ${PTHREAD_INCLUDE_DIR}
${HDF5_INCLUDE_DIRS}
- ${Boost_INCLUDE_DIRS}
- ${CMAKE_BINARY_DIR}/salome_adm
+ ${Boost_INCLUDE_DIR}
+ ${PROJECT_BINARY_DIR}/salome_adm
${CMAKE_CURRENT_SOURCE_DIR}/../Basics
${CMAKE_CURRENT_SOURCE_DIR}/../SALOMELocalTrace
${CMAKE_CURRENT_SOURCE_DIR}/../HDFPersist
${CMAKE_CURRENT_SOURCE_DIR}/../DF
- ${CMAKE_BINARY_DIR}
+ ${PROJECT_BINARY_DIR}
)
# This local variable defines the list of FLAGS common to all target in this package.
-ADD_DEFINITIONS(${HDF5_DEFINITIONS} ${BOOST_DEFINITIONS})
-
+ADD_DEFINITIONS(${BOOST_DEFINITIONS})
# This local variable defines the list of dependant libraries common to all target in this package.
SET(COMMON_LIBS
SALOMEBasics
SALOMEDSImpl_SComponentIterator.cxx
SALOMEDSImpl_StudyBuilder.cxx
SALOMEDSImpl_Study.cxx
- SALOMEDSImpl_StudyManager.cxx
SALOMEDSImpl_IParameters.cxx
SALOMEDSImpl_TMPFile.cxx
SALOMEDSImpl_GenericVariable.cxx
ADD_LIBRARY(SalomeDSImpl ${SalomeDSImpl_SOURCES})
TARGET_LINK_LIBRARIES(SalomeDSImpl SALOMELocalTrace ${COMMON_LIBS} ${PLATFORM_LIBS})
-INSTALL(TARGETS SalomeDSImpl DESTINATION ${SALOME_INSTALL_LIBS})
+INSTALL(TARGETS SalomeDSImpl EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
ADD_EXECUTABLE(testDS testDS.cxx)
TARGET_LINK_LIBRARIES(testDS SalomeDSImpl ${COMMON_LIBS} ${PLATFORM_LIBS})