Salome HOME
Correct boost headers variable
[modules/kernel.git] / src / DF / CMakeLists.txt
old mode 100755 (executable)
new mode 100644 (file)
index 013773a..d763f43
@@ -1,9 +1,9 @@
-# Copyright (C) 2012  CEA/DEN, EDF R&D, OPEN CASCADE
+# Copyright (C) 2012-2020  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(
-  ${BOOST_INCLUDE_DIRS}
+  ${Boost_INCLUDE_DIRS}
+  ${CMAKE_CURRENT_SOURCE_DIR}/../Basics
 )
+ADD_DEFINITIONS(${BOOST_DEFINITIONS})
 
 SET(DF_SOURCES
   DF_Attribute.cxx
@@ -28,23 +30,14 @@ SET(DF_SOURCES
   DF_Application.cxx
   DF_ChildIterator.cxx
   DF_Container.cxx
-  DF_Attribute.hxx
-  DF_Label.hxx
-  DF_Application.hxx
-  DF_Document.hxx
-  DF_ChildIterator.hxx
-  DF_Container.hxx
-  DF_definitions.hxx
 )
 
-ADD_LIBRARY(DF SHARED ${DF_SOURCES})
-SET_TARGET_PROPERTIES(DF PROPERTIES COMPILE_FLAGS "${BOOST_DEFINITIONS}")
-INSTALL(TARGETS DF DESTINATION ${KERNEL_salomelib_LIBS})
+ADD_LIBRARY(DF ${DF_SOURCES})
+INSTALL(TARGETS DF EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
 
 ADD_EXECUTABLE(testDF testDF.cxx)
-SET_TARGET_PROPERTIES(testDF PROPERTIES COMPILE_FLAGS "${BOOST_DEFINITIONS}")
-TARGET_LINK_LIBRARIES(testDF DF)
-INSTALL(TARGETS testDF DESTINATION ${KERNEL_salomebin_BINS})
+TARGET_LINK_LIBRARIES(testDF DF SALOMEBasics)
+INSTALL(TARGETS testDF DESTINATION ${SALOME_INSTALL_BINS})
 
 FILE(GLOB COMMON_HEADERS_HXX "${CMAKE_CURRENT_SOURCE_DIR}/*.hxx")
-INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${KERNEL_salomeinclude_HEADERS})
+INSTALL(FILES ${COMMON_HEADERS_HXX} DESTINATION ${SALOME_INSTALL_HEADERS})