1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
|
IF(MINGW AND I64)
ADD_DEFINITIONS(-DMS_WIN64)
ENDIF(MINGW AND I64)
# 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)
IF(NOT SYSTEM_SIP)
SET(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -DTULIP_SIP")
ENDIF(NOT SYSTEM_SIP)
ADD_SUBDIRECTORY(modules)
ADD_SUBDIRECTORY(bindings)
# libtulip-python is not needed when building Python wheels
IF(NOT ACTIVATE_PYTHON_WHEELS_TARGETS)
ADD_SUBDIRECTORY(api)
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(src)
ENDIF(NOT ACTIVATE_PYTHON_WHEELS_TARGETS)
|