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 <luciano.wolf@openbossa.org> Reviewed-by: Hugo Parente Lima <hugo.lima@openbossa.org>
This commit is contained in:
parent
2593f9fccc
commit
3c36d44472
11 changed files with 27 additions and 55 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue