Salome HOME
ATOMSOLV porting to CMake build system : initial version.
[samples/atomsolv.git] / src / ATOMSOLV / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D, OPEN CASCADE
2 #
3 # This library is free software; you can redistribute it and/or
4 # modify it under the terms of the GNU Lesser General Public
5 # License as published by the Free Software Foundation; either
6 # version 2.1 of the License.
7 #
8 # This library is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 # Lesser General Public License for more details.
12 #
13 # You should have received a copy of the GNU Lesser General Public
14 # License along with this library; if not, write to the Free Software
15 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 #
17 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 #
19
20 INCLUDE(UseQt4Ext)
21
22 # --- options ---
23 # additional include directories
24 INCLUDE_DIRECTORIES(
25   ${QT_INCLUDES}
26   ${CAS_INCLUDE_DIRS}
27   ${KERNEL_INCLUDE_DIRS}
28   ${OMNIORB_INCLUDE_DIR}
29   ${ATOMGEN_INCLUDE_DIRS}
30   ${PROJECT_BINARY_DIR}
31   ${PROJECT_BINARY_DIR}/idl
32 )
33
34 # libraries to link to
35 SET(_link_LIBRARIES
36   ${ATOMGEN_SalomeIDLATOMGEN}
37   ${KERNEL_SalomeContainer}
38   SalomeIDLATOMSOLV
39 )
40
41 # --- headers ---
42
43 # header files / no moc processing
44 SET(ATOMSOLV_HEADERS
45   ATOMSOLV.hxx
46 )
47
48 # --- sources ---
49
50 # sources / static
51 SET(ATOMSOLV_SOURCES
52   ATOMSOLV.cxx
53 )
54
55 # --- rules ---
56
57 ADD_LIBRARY(ATOMSOLVEngine ${ATOMSOLV_SOURCES})
58 TARGET_LINK_LIBRARIES(ATOMSOLVEngine ${_link_LIBRARIES} )
59 INSTALL(TARGETS ATOMSOLVEngine EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
60
61 INSTALL(FILES ${ATOMSOLV_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})