Commit 3eba5834 authored by millerjv's avatar millerjv
Browse files

ENH: Turned off the warnings from Visual Studio 2005 wrt sprintf, strcpy, etc.

ENH: Added logic to search for python

git-svn-id: http://svn.slicer.org/Slicer4/trunk@2325 3bd1e089-480b-0410-8dfb-8563597acbee
parent 7f0487ee
......@@ -2,6 +2,13 @@ PROJECT( Slicer3 )
CMAKE_MINIMUM_REQUIRED(VERSION 2.2)
MARK_AS_ADVANCED(CMAKE_BACKWARDS_COMPATIBILITY)
#
# Disable the warnings that DevStudio 2005 emits wrt to sprintf, strcpu, etc.
#
IF(CMAKE_COMPILER_2005)
ADD_DEFINITIONS(-D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE)
ENDIF(CMAKE_COMPILER_2005)
#-----------------------------------------------------------------------------
# Slicer version number.
SET(Slicer3_VERSION_MAJOR "3")
......@@ -59,6 +66,13 @@ ENDIF(Slicer3_BUILD_TESTING)
# - KWWidgets (pulls in VTK)
#
## Python
OPTION(USE_PYTHON "Integrate a python interpreter into Slicer." OFF)
IF (USE_PYTHON)
FIND_PACKAGE(PythonLibs)
ENDIF(USE_PYTHON)
## ITK
FIND_PACKAGE(ITK REQUIRED)
IF (NOT ITK_FOUND)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment