]> SALOME platform Git repositories - tools/solverlab.git/blob - CoreFlows/gui/salome/CMakeLists.txt
Salome HOME
Factored Salome kernel detection
[tools/solverlab.git] / CoreFlows / gui / salome / 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 # Qt5
21 FIND_PACKAGE(SalomeQt5 REQUIRED COMPONENTS QtCore QtGui)
22
23 IF(SALOME_BUILD_DOC)
24 #  FIND_PACKAGE(SalomeDoxygen)
25 #  FIND_PACKAGE(SalomeSphinx)
26 #  SALOME_LOG_OPTIONAL_PACKAGE(Doxygen SALOME_BUILD_DOC)
27 #  SALOME_LOG_OPTIONAL_PACKAGE(Sphinx SALOME_BUILD_DOC)
28 #  ADD_DEFINITIONS(-DDOXYGEN_IS_OK)
29 ENDIF()
30
31 IF(SALOME_BUILD_TESTS)
32   ENABLE_TESTING()
33 ENDIF()
34
35 # Detection summary:
36 SALOME_PACKAGE_REPORT_AND_CHECK()
37
38 # Directories
39 # ===========
40 SET(SALOME_INSTALL_LIBS "${SALOME_INSTALL_LIBS}" CACHE PATH "Install path: SALOME libs")
41 SET(SALOME_INSTALL_PYTHON "${SALOME_INSTALL_PYTHON}" CACHE PATH 
42     "Install path: SALOME Python scripts")
43 SET(SALOME_INSTALL_SCRIPT_PYTHON "${SALOME_INSTALL_SCRIPT_PYTHON}" CACHE PATH 
44     "Install path: SALOME Python scripts")
45 SET(SALOME_INSTALL_CMAKE_LOCAL ${SALOME_INSTALL_CMAKE_LOCAL} CACHE PATH 
46     "Install path: local SALOME CMake files") 
47 SET(SALOME_INSTALL_RES "${SALOME_INSTALL_RES}" CACHE PATH "Install path: SALOME resources")
48 SET(SALOME_INSTALL_DOC "${SALOME_INSTALL_DOC}" CACHE PATH "Install path: SALOME documentation")
49 SET(SALOME_INSTALL_HEADERS ${SALOME_INSTALL_HEADERS} CACHE PATH "Install path: SALOME headers")
50  
51 # Specific to CoreFlows:   
52 SET(SALOME_CoreFlows_INSTALL_RES_DATA ${SALOME_INSTALL_RES}/solverlab CACHE PATH "Install path: SALOME SOLVERLAB specific resources")
53
54 # Sources 
55 # ========
56 ADD_SUBDIRECTORY(src)
57 ADD_SUBDIRECTORY(resources)
58 IF(SALOME_BUILD_DOC)
59 #   ADD_SUBDIRECTORY(doc)
60 ENDIF()
61