]> SALOME platform Git repositories - modules/yacs.git/blob - src/yacsloader/pmml/CMakeLists.txt
Salome HOME
Fix Win32 compilation errors.
[modules/yacs.git] / src / yacsloader / pmml / CMakeLists.txt
1 # Copyright (C) 2012-2013  CEA/DEN, EDF R&D
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 # Author : InckA
20
21 # additional preprocessor / compiler flags
22 ADD_DEFINITIONS(
23   ${CPPUNIT_DEFINITIONS}
24   ${OMNIORB_DEFINITIONS}
25 )
26 IF(WIN32)
27   ADD_DEFINITIONS(-DNOGDI)
28 ENDIF(WIN32)
29
30
31 INCLUDE_DIRECTORIES(
32   ${CPPUNIT_INCLUDE_DIRS}
33   ${PTHREADS_INCLUDE_DIRS}
34   ${EXPAT_INCLUDE_DIR}
35   ${CMAKE_CURRENT_SOURCE_DIR}/
36   ${CMAKE_CURRENT_SOURCE_DIR}/..
37   ${CMAKE_CURRENT_SOURCE_DIR}/../../bases
38   ${CMAKE_CURRENT_SOURCE_DIR}/../../bases/Test
39   ${CMAKE_CURRENT_SOURCE_DIR}/../../engine
40   ${CMAKE_CURRENT_SOURCE_DIR}/../../runtime
41   ${CMAKE_CURRENT_SOURCE_DIR}/../../pmml
42   )
43
44
45 SET(TestYACSPMML_SOURCES
46   TestYACSPMML.cxx
47   YACSPMMLBasicsTest1.cxx
48   )
49
50 ADD_EXECUTABLE(TestYACSPMML ${TestYACSPMML_SOURCES})
51
52
53 TARGET_LINK_LIBRARIES(TestYACSPMML pmmlLib   
54                       YACSloader
55                       YACSRuntimeSALOME
56                       YACSlibEngine
57                       YACSBases 
58                       ${CPPUNIT_LIBRARIES} ${PLATFORM_LIBS})
59
60 ADD_TEST(TestYACSPMML TestYACSPMML)
61
62 INSTALL(TARGETS TestYACSPMML DESTINATION ${SALOME_INSTALL_BINS})