From: sbh Date: Wed, 24 Sep 2014 12:29:21 +0000 (+0400) Subject: Useful cmake procedures for Eclipse IDE. Safe for VS environment. X-Git-Tag: V_0.4.4~24 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=9cb6efbe077cadd311e19c3d35153c602ba77f64;p=modules%2Fshaper.git Useful cmake procedures for Eclipse IDE. Safe for VS environment. --- diff --git a/CMakeCommon/FindEclipse.cmake b/CMakeCommon/FindEclipse.cmake new file mode 100644 index 000000000..772b7160e --- /dev/null +++ b/CMakeCommon/FindEclipse.cmake @@ -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") diff --git a/CMakeLists.txt b/CMakeLists.txt index 7806682d4..ac61b73e9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)