@@ -9,8 +9,7 @@ set(XGLOBE_VERSION "${XGLOBE_VERSION_MAJOR}.${XGLOBE_VERSION_MINOR}.${XGLOBE_VER
9
9
project (xglobe
10
10
VERSION ${XGLOBE_VERSION}
11
11
DESCRIPTION "XGlobe is the further development of Thorsten Scheuermanns xglobe 0.5 release."
12
- HOMEPAGE_URL "https://github.com/sizeofvoid/xglobe"
13
- LANGUAGES Swift C CXX)
12
+ HOMEPAGE_URL "https://github.com/sizeofvoid/xglobe" )
14
13
15
14
if (NOT CMAKE_BUILD_TYPE )
16
15
set (CMAKE_BUILD_TYPE "RelWithDebInfo" CACHE STRING
@@ -31,7 +30,7 @@ option(ENABLE_INSTALL_MAPS "Install default maps" ON)
31
30
set (INSTALL_XGLOBE_DATA_DIR "${CMAKE_INSTALL_FULL_DATADIR} /xglobe" )
32
31
if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
33
32
set (QT5COMPONENTS Core DBus Gui Widgets)
34
- elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
33
+ elseif (${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD" )
35
34
set (QT5COMPONENTS Core DBus Gui Widgets X11Extras)
36
35
set (X11LIBS X11 Qt5::X11Extras)
37
36
find_program (XWALLPAPER_BIN xwallpaper)
@@ -81,7 +80,7 @@ target_compile_options(xglobe PRIVATE "-fexceptions")
81
80
82
81
set_property (TARGET xglobe PROPERTY AUTOMOC ON )
83
82
84
- if (NOT XWALLPAPER_BIN AND ${CMAKE_SYSTEM_NAME} MATCHES "Linux" )
83
+ if (NOT XWALLPAPER_BIN AND (( ${CMAKE_SYSTEM_NAME} MATCHES "Linux" OR ${CMAKE_SYSTEM_NAME} MATCHES "BSD" )) )
85
84
message (FATAL_ERROR "Missing xwallpaper, please install xwallpaper" )
86
85
elseif (${CMAKE_SYSTEM_NAME} MATCHES "Darwin" )
87
86
target_compile_definitions (xglobe PRIVATE XWALLPAPER_BIN="xglobe_wallpaper_changer" )
0 commit comments