mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
cmake: enable Facebook support
Not sure if we have this on Android, so right now I just enable it for Linux, OS X, and Windows. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c21883c419
commit
e491f4a0db
1 changed files with 8 additions and 0 deletions
|
@ -146,12 +146,14 @@ add_custom_target(
|
||||||
|
|
||||||
set(PLATFORM_SRC unknown_platform.c)
|
set(PLATFORM_SRC unknown_platform.c)
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
||||||
|
set(FBSUPPORT 1)
|
||||||
set(SUBSURFACE_TARGET subsurface)
|
set(SUBSURFACE_TARGET subsurface)
|
||||||
set(PLATFORM_SRC linux.c)
|
set(PLATFORM_SRC linux.c)
|
||||||
# in some builds we appear to be missing libz for some strange reason...
|
# in some builds we appear to be missing libz for some strange reason...
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lz)
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
|
set(FBSUPPORT 1)
|
||||||
set(SUBSURFACE_TARGET Subsurface)
|
set(SUBSURFACE_TARGET Subsurface)
|
||||||
set(PLATFORM_SRC macos.c)
|
set(PLATFORM_SRC macos.c)
|
||||||
find_library(APP_SERVICES_LIBRARY ApplicationServices)
|
find_library(APP_SERVICES_LIBRARY ApplicationServices)
|
||||||
|
@ -169,6 +171,7 @@ if(CMAKE_SYSTEM_NAME STREQUAL "Darwin")
|
||||||
set(SUBSURFACE_PKG MACOSX_BUNDLE ${ICON_FILE})
|
set(SUBSURFACE_PKG MACOSX_BUNDLE ${ICON_FILE})
|
||||||
endif()
|
endif()
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
|
||||||
|
set(FBSUPPORT 1)
|
||||||
set(SUBSURFACE_TARGET subsurface)
|
set(SUBSURFACE_TARGET subsurface)
|
||||||
set(PLATFORM_SRC windows.c)
|
set(PLATFORM_SRC windows.c)
|
||||||
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32)
|
set(SUBSURFACE_LINK_LIBRARIES ${SUBSURFACE_LINK_LIBRARIES} -lwsock32)
|
||||||
|
@ -227,6 +230,10 @@ set(SUBSURFACE_CORE_LIB_SRCS
|
||||||
${PLATFORM_SRC}
|
${PLATFORM_SRC}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if(FBSUPPORT)
|
||||||
|
add_definitions(-DFBSUPPORT)
|
||||||
|
set(SOCIALNETWORKS qt-ui/socialnetworks.cpp)
|
||||||
|
endif()
|
||||||
# the interface, in C++
|
# the interface, in C++
|
||||||
|
|
||||||
set(SUBSURFACE_INTERFACE
|
set(SUBSURFACE_INTERFACE
|
||||||
|
@ -265,6 +272,7 @@ set(SUBSURFACE_INTERFACE
|
||||||
qt-ui/configuredivecomputerdialog.cpp
|
qt-ui/configuredivecomputerdialog.cpp
|
||||||
qt-ui/filtermodels.cpp
|
qt-ui/filtermodels.cpp
|
||||||
qt-ui/undocommands.cpp
|
qt-ui/undocommands.cpp
|
||||||
|
${SOCIALNETWORKS}
|
||||||
)
|
)
|
||||||
|
|
||||||
# the profile widget
|
# the profile widget
|
||||||
|
|
Loading…
Add table
Reference in a new issue