#3066 AppFwk : Add define to avoid min() and max() as macros

This commit is contained in:
Magne Sjaastad 2018-06-20 09:56:46 +02:00
parent 2eef989389
commit b0a6b81363

View File

@ -1,5 +1,10 @@
cmake_minimum_required (VERSION 2.8.12)
if (MSVC)
# Define this one to tell windows.h to not define min() and max() as macros
add_definitions(-DNOMINMAX)
endif (MSVC)
# Qt
find_package ( Qt4 COMPONENTS QtCore QtGui QtMain )
include (${QT_USE_FILE})