Add missing defines

This commit is contained in:
Evgenii 2017-02-21 14:46:48 +02:00 committed by Berkus Decker
parent b96d64fdaf
commit 53b851053d
1 changed files with 12 additions and 0 deletions

View File

@ -2,6 +2,18 @@ find_package(Qt5Core 5.6 REQUIRED)
find_package(Qt5Gui 5.6 REQUIRED)
find_package(Qt5Widgets 5.6 REQUIRED)
include_directories(${Qt5Core_INCLUDE_DIRS} ${Qt5Gui_INCLUDE_DIRS} ${Qt5Widgets_INCLUDE_DIRS})
# defines
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
if (CMAKE_SIZEOF_VOID_P EQUAL 8)
add_definitions(-DQ_OS_LINUX64)
else()
add_definitions(-DQ_OS_LINUX32)
endif()
endif()
##======================
## Codegen Tools
##======================