IF(MINGW AND X86_64)
  ADD_DEFINITIONS(-DMS_WIN64)
ENDIF(MINGW AND X86_64)

# VS2013 and beyond implement C99 math functions.  Of interest to Python is the function round().
# Python conditionally provides its own implementation of round() based on whether or not HAVE_ROUND is defined, but in no case is HAVE_ROUND ever defined.
# This leads to a huge spew of warnings when compiling with VS2013, and presumably it also leads to undefined behavior.
# So define HAVE_ROUND for that compiler.
IF(MSVC12)
  SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DHAVE_ROUND")
ENDIF(MSVC12)

ADD_DEFINITIONS("-DSIP_MODULE=${SIP_MODULE}")

ADD_CORE_FILES(CMakeLists.txt)

ADD_SUBDIRECTORY(modules)
ADD_SUBDIRECTORY(bindings)
ADD_SUBDIRECTORY(plugins)

# libtulip-python is not needed when not building tulip gui
IF(NOT TULIP_BUILD_CORE_ONLY)
  ADD_SUBDIRECTORY(api)
  ADD_SUBDIRECTORY(include)
  ADD_SUBDIRECTORY(src)
ENDIF(NOT TULIP_BUILD_CORE_ONLY)
