]> SALOME platform Git repositories - modules/shaper.git/blob - CMakeLists.txt
Salome HOME
Process multi-selection in pop-up menu
[modules/shaper.git] / CMakeLists.txt
1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
2
3 PROJECT (NewGEOM)
4
5 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeCommon" ${CMAKE_MODULE_PATH})
6
7 INCLUDE(Common)
8 INCLUDE(FindQt)
9 INCLUDE(FindBoost)
10 INCLUDE(FindPython)
11 INCLUDE(FindSalome)
12 INCLUDE(FindSolveSpace)
13 INCLUDE(FindCAS)
14
15 IF(UNIX)
16   IF(CMAKE_COMPILER_IS_GNUCC)
17     #C++11 is not supported on some platforms, disable it 
18     MESSAGE(STATUS "Setting -std=c++0x flag for the gcc...")
19     SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
20     
21     #Supporting test coverage checks (gcov) in the DEBUG mode
22     IF(USE_TEST_COVERAGE)
23       INCLUDE(CodeCoverage)
24       MESSAGE(STATUS "Setting flags for gcov support the the gcc...")
25       SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
26       SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
27       SET(CMAKE_SHARED_LINKER_FLAGS "-lgcov")
28       
29       SETUP_TARGET_FOR_COVERAGE(test_coverage  # Name for custom target.
30                                                 ctest          # Name of the test driver executable that runs the tests.
31                                                 coverage)      # Name of output directory.
32     ENDIF(USE_TEST_COVERAGE)
33     
34     #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -E")
35     MESSAGE(STATUS "gcc flags are: " ${CMAKE_CXX_FLAGS})
36     MESSAGE(STATUS "linker flags are: " ${CMAKE_SHARED_LINKER_FLAGS})
37   ENDIF(CMAKE_COMPILER_IS_GNUCC)
38 ENDIF(UNIX)
39
40
41 ADD_SUBDIRECTORY (src/Config)
42 ADD_SUBDIRECTORY (src/Events)
43 ADD_SUBDIRECTORY (src/Model)
44 ADD_SUBDIRECTORY (src/ModelAPI)
45 ADD_SUBDIRECTORY (src/GeomAPI)
46 ADD_SUBDIRECTORY (src/GeomAlgoAPI)
47 ADD_SUBDIRECTORY (src/GeomData)
48 ADD_SUBDIRECTORY (src/GeomDataAPI)
49 ADD_SUBDIRECTORY (src/PartSetPlugin)
50 ADD_SUBDIRECTORY (src/ConstructionPlugin)
51 ADD_SUBDIRECTORY (src/FeaturesPlugin)
52 ADD_SUBDIRECTORY (src/SketchPlugin)
53 ADD_SUBDIRECTORY (src/SketchSolver)
54 ADD_SUBDIRECTORY (src/ModuleBase)
55 ADD_SUBDIRECTORY (src/PartSet)
56 ADD_SUBDIRECTORY (src/PyConsole)
57 ADD_SUBDIRECTORY (src/PyEvent)
58 ADD_SUBDIRECTORY (src/PyInterp)
59 ADD_SUBDIRECTORY (src/XGUI)
60 ADD_SUBDIRECTORY (src/GeomApp)
61
62 IF(${HAVE_SALOME})
63         ADD_SUBDIRECTORY (src/NewGeom)
64 ENDIF(${HAVE_SALOME})
65
66 ENABLE_TESTING()