1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

chore(cmake): Added logic to the QTOX_PLATFORM_EXT flag

This commit is contained in:
Diadlo 2016-12-01 09:20:02 +03:00
parent d5870d8079
commit 1efca679e1
No known key found for this signature in database
GPG Key ID: 5AF9F2E29107C727

View File

@ -154,8 +154,29 @@ if (NOT TIMESTAMP)
) )
endif() endif()
set(APPLE_EXT False)
if (AVFOUNDATION_FOUND OR FRAMEWORK_FOUND OR COREMEDIA_FOUND
OR COREGRAPHICS_FOUND OR FOUNDATION_FOUND OR IOKIT_FOUND)
set(APPLE_EXT True)
endif()
set(LINUX_EXT False)
if (APPINDICATOR_FOUND OR GDK_PIXBUF_FOUND OR GLIB_FOUND
OR GTK_FOUND OR X11_FOUND OR XSS_FOUND)
set(LINUX_EXT True)
endif()
if (${APPLE_EXT} OR ${LINUX_EXT})
add_definitions(
-DQTOX_PLATFORM_EXT=1
)
else()
add_definitions(
-DQTOX_PLATFORM_EXT=0
)
endif()
add_definitions( add_definitions(
-DTIMESTAMP=${TIMESTAMP} -DTIMESTAMP=${TIMESTAMP}
-DLOG_TO_FILE=1 -DLOG_TO_FILE=1
-DQTOX_PLATFORM_EXT=1
) )