1 CMAKE_MINIMUM_REQUIRED(VERSION 2.8.10)
5 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeCommon" ${CMAKE_MODULE_PATH})
12 INCLUDE(FindSolveSpace)
18 IF(CMAKE_COMPILER_IS_GNUCC)
19 #C++11 is not supported on some platforms, disable it
20 MESSAGE(STATUS "Setting -std=c++0x flag for the gcc...")
21 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++0x")
23 #Supporting test coverage checks (gcov) in the DEBUG mode
26 MESSAGE(STATUS "Setting flags for gcov support the the gcc...")
27 SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
28 SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -g -O0 -fprofile-arcs -ftest-coverage")
29 SET(CMAKE_SHARED_LINKER_FLAGS "-lgcov")
31 SETUP_TARGET_FOR_COVERAGE(test_coverage # Name for custom target.
32 ctest # Name of the test driver executable that runs the tests.
33 coverage) # Name of output directory.
34 ENDIF(USE_TEST_COVERAGE)
36 #SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -E")
37 MESSAGE(STATUS "gcc flags are: " ${CMAKE_CXX_FLAGS})
38 MESSAGE(STATUS "linker flags are: " ${CMAKE_SHARED_LINKER_FLAGS})
39 ENDIF(CMAKE_COMPILER_IS_GNUCC)
43 ADD_SUBDIRECTORY (src/Config)
44 ADD_SUBDIRECTORY (src/Events)
45 ADD_SUBDIRECTORY (src/Model)
46 ADD_SUBDIRECTORY (src/ModelAPI)
47 ADD_SUBDIRECTORY (src/GeomAPI)
48 ADD_SUBDIRECTORY (src/GeomAlgoAPI)
49 ADD_SUBDIRECTORY (src/GeomData)
50 ADD_SUBDIRECTORY (src/GeomDataAPI)
51 ADD_SUBDIRECTORY (src/PartSetPlugin)
52 ADD_SUBDIRECTORY (src/ConstructionPlugin)
53 ADD_SUBDIRECTORY (src/FeaturesPlugin)
54 ADD_SUBDIRECTORY (src/SketchPlugin)
55 ADD_SUBDIRECTORY (src/SketchSolver)
56 ADD_SUBDIRECTORY (src/ModuleBase)
57 ADD_SUBDIRECTORY (src/PartSet)
58 ADD_SUBDIRECTORY (src/XGUI)
59 ADD_SUBDIRECTORY (src/GeomApp)
60 ADD_SUBDIRECTORY (src/ExchangePlugin)
63 ADD_SUBDIRECTORY (src/NewGeom)