]> SALOME platform Git repositories - modules/yacs.git/blob - src/bases/CMakeLists.txt
Salome HOME
Merge branch V7_3_1_BR
[modules/yacs.git] / src / bases / CMakeLists.txt
1 # Copyright (C) 2012-2014  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, 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 IF(SALOME_BUILD_TESTS)
21   ADD_SUBDIRECTORY(Test)
22 ENDIF(SALOME_BUILD_TESTS)
23
24 # --- options ---
25
26 # additional include directories
27 INCLUDE_DIRECTORIES(
28   ${PTHREAD_INCLUDE_DIR}
29   )
30
31 # libraries to link to
32 SET(_link_LIBRARIES
33   ${PTHREAD_LIBRARIES}
34   ${PLATFORM_LIBS}
35   )
36
37 # --- headers ---
38
39 SET(YACSBases_HEADERS
40   YACSBasesExport.hxx
41   Cstr2d.hxx
42   define.hxx
43   DynLibLoaderGNU.hxx
44   DynLibLoader.hxx
45   DynLibLoaderWin.hxx
46   Exception.hxx
47   Mutex.hxx
48   MutexPT.hxx
49   Semaphore.hxx
50   SemaphorePT.hxx
51   Thread.hxx
52   ThreadPT.hxx
53   AlternateThread.hxx
54   AlternateThreadPT.hxx
55   YacsTrace.hxx
56   yacsconfig.h
57   chrono.hxx
58   )
59
60 # --- sources ---
61
62 SET(YACSBases_SOURCES
63   Exception.cxx
64   Thread.cxx
65   AlternateThread.cxx
66   Mutex.cxx
67   Semaphore.cxx
68   DynLibLoader.cxx
69   Cstr2d.cxx
70   YacsTrace.cxx
71   chrono.cxx
72   )
73
74 # --- type of library ---
75
76 SET(TYPE)
77 IF(WIN32)
78   SET(TYPE STATIC)
79 ELSE(WIN32)
80   SET(TYPE SHARED)
81 ENDIF(WIN32)
82
83 # --- rules ---
84
85 ADD_LIBRARY(YACSBases ${TYPE} ${YACSBases_SOURCES})
86 TARGET_LINK_LIBRARIES(YACSBases ${_link_LIBRARIES})
87 INSTALL(TARGETS YACSBases EXPORT ${PROJECT_NAME}TargetGroup DESTINATION ${SALOME_INSTALL_LIBS})
88
89 INSTALL(FILES ${YACSBases_HEADERS} DESTINATION ${SALOME_INSTALL_HEADERS})