]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Useful cmake procedures for Eclipse IDE. Safe for VS environment.
authorsbh <sergey.belash@opencascade.com>
Wed, 24 Sep 2014 12:29:21 +0000 (16:29 +0400)
committersbh <sergey.belash@opencascade.com>
Wed, 24 Sep 2014 12:29:21 +0000 (16:29 +0400)
CMakeCommon/FindEclipse.cmake [new file with mode: 0644]
CMakeLists.txt

diff --git a/CMakeCommon/FindEclipse.cmake b/CMakeCommon/FindEclipse.cmake
new file mode 100644 (file)
index 0000000..772b716
--- /dev/null
@@ -0,0 +1,9 @@
+IF (CMAKE_GENERATOR MATCHES "NMake Makefiles")
+  IF(CMAKE_BUILD_TYPE STREQUAL "Debug")
+    ADD_DEFINITIONS(-D_DEBUG)
+  ENDIF(CMAKE_BUILD_TYPE STREQUAL "Debug")
+  IF(WIN32)
+    FIND_PATH(VC_INCLUDE_PATH stdio.h)
+    INCLUDE_DIRECTORIES(${VC_INCLUDE_PATH})
+  ENDIF(WIN32)
+ENDIF (CMAKE_GENERATOR MATCHES "NMake Makefiles")
index 7806682d431b020e44f52a6aaf6d786c837b61b2..ac61b73e91351b4921c509d6fe95ab9003fbf18f 100644 (file)
@@ -4,6 +4,7 @@ PROJECT (NewGEOM)
 
 SET(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/CMakeCommon" ${CMAKE_MODULE_PATH})
 
+INCLUDE(FindEclipse)
 INCLUDE(Common)
 INCLUDE(FindQt)
 INCLUDE(FindBoost)