cmake: check for dns_sd header file
This commit is contained in:
parent
b2173efbae
commit
0b3068b534
1 changed files with 8 additions and 2 deletions
|
|
@ -232,6 +232,12 @@ if (UNIX)
|
|||
list (APPEND libs Xi)
|
||||
endif()
|
||||
|
||||
set (DnsSdlib "dns_sd.h")
|
||||
set (CMAKE_EXTRA_INCLUDE_FILES "${CMAKE_EXTRA_INCLUDE_FILES};${DnsSdlib}")
|
||||
check_include_files ("${DnsSdlib}" HAVE_DNS_SD)
|
||||
if (NOT HAVE_DNS_SD)
|
||||
message (FATAL_ERROR "Missing header: " ${DnsSdlib})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
# For config.h, set some static values; it may be a good idea to make
|
||||
|
|
@ -362,7 +368,7 @@ if (${CMAKE_SYSTEM_NAME} MATCHES "Darwin")
|
|||
set (SYNERGY_BUNDLE_DIR ${CMAKE_BINARY_DIR}/bundle)
|
||||
set (SYNERGY_BUNDLE_APP_DIR ${SYNERGY_BUNDLE_DIR}/Synergy.app)
|
||||
set (SYNERGY_BUNDLE_BINARY_DIR ${SYNERGY_BUNDLE_APP_DIR}/Contents/MacOS)
|
||||
|
||||
|
||||
generate_versionfile()
|
||||
configure_files (${SYNERGY_BUNDLE_SOURCE_DIR} ${SYNERGY_BUNDLE_DIR})
|
||||
endif()
|
||||
|
|
@ -383,7 +389,7 @@ endif()
|
|||
if (${CMAKE_SYSTEM_NAME} MATCHES "Linux")
|
||||
configure_files (${CMAKE_CURRENT_SOURCE_DIR}/dist/rpm ${CMAKE_BINARY_DIR}/rpm)
|
||||
install(FILES res/synergy.svg DESTINATION share/icons/hicolor/scalable/apps)
|
||||
if("${VERSION_MAJOR}" STREQUAL "2")
|
||||
if("${VERSION_MAJOR}" STREQUAL "2")
|
||||
install(FILES res/synergy2.desktop DESTINATION share/applications)
|
||||
else()
|
||||
install(FILES res/synergy.desktop DESTINATION share/applications)
|
||||
|
|
|
|||
Loading…
Reference in a new issue