Salome HOME
Updated copyright comment
[modules/hexablock.git] / src / TEST_CPP / CMakeLists.txt
1 # Copyright (C) 2012-2024  CEA, EDF
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, or (at your option) any later version.
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 # --- options ---
21 # additional include directories
22 INCLUDE_DIRECTORIES(
23   ${PROJECT_SOURCE_DIR}/src/HEXABLOCK
24   ${PROJECT_BINARY_DIR}/idl
25   ${CPPUNIT_INCLUDE_DIR}
26 )
27
28 # libraries to link to
29 SET(_link_LIBRARIES
30   HEXABLOCKEngine
31   ${CPPUNIT_LIBRARIES}
32 )
33
34 ADD_DEFINITIONS(${CPPUNIT_DEFINITIONS})
35
36 # --- sources ---
37
38 # sources / static
39 SET(HEXABLOCKTest_SOURCES
40   test_unit.hxx
41   test_hexa1.cxx
42   test_tools.cxx
43   test_quads.cxx
44   ModelTest.cxx 
45   ModelTest.hxx
46 )
47
48 # bin programs
49 SET(Test_HEXABLOCK_bin_SOURCES
50   Test_HEXABLOCK.cxx
51 )
52
53 # --- rules ---
54
55 ADD_LIBRARY(HEXABLOCKTest ${HEXABLOCKTest_SOURCES})
56 TARGET_LINK_LIBRARIES(HEXABLOCKTest ${_link_LIBRARIES} )
57 INSTALL(TARGETS HEXABLOCKTest EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
58
59 ADD_EXECUTABLE(Test_HEXABLOCK ${Test_HEXABLOCK_bin_SOURCES})
60 TARGET_LINK_LIBRARIES(Test_HEXABLOCK ${_link_LIBRARIES} HEXABLOCKTest)
61 INSTALL(TARGETS Test_HEXABLOCK EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_BINS})