From 3c36d444729ee9285bb4ab0252968057bf904a8d Mon Sep 17 00:00:00 2001 From: Anderson Lizardo Date: Fri, 13 Aug 2010 22:32:07 -0400 Subject: Various cleanups to CMakeLists.txt files * Simplify endmacro(), endif() and else() statements * Remove unused and redundant code * Use AUTO_OS for holding the typesystem suffix (instead of MODULE_NAME) Reviewed-by: Luciano Wolf Reviewed-by: Hugo Parente Lima --- CMakeLists.txt | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index 3f5dc7e07..244e5586a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -72,25 +72,22 @@ if (${QTVERSION} VERSION_LESS 4.5.0) endif() # Configure OS support +set(ENABLE_X11 "0") +set(ENABLE_MAC "0") +set(ENABLE_WIN "0") if(Q_WS_X11) set(ENABLE_X11 "1") - set(ENABLE_MAC "0") - set(ENABLE_WIN "0") if(Q_WS_MAEMO_5) - set(AUTO_OS "MAEMO 5") + set(AUTO_OS "maemo") else() - set(AUTO_OS "X11") + set(AUTO_OS "x11") endif() elseif(Q_WS_MAC) - set(ENABLE_X11 "0") set(ENABLE_MAC "1") - set(ENABLE_WIN "0") - set(AUTO_OS "MAC") + set(AUTO_OS "mac") elseif(Q_WS_WIN) - set(ENABLE_X11 "0") - set(ENABLE_MAC "0") set(ENABLE_WIN "1") - set(AUTO_OS "WIN") + set(AUTO_OS "win") else() message(FATAL_ERROR "OS not supported") endif() -- cgit v1.2.3