fix build for linux
This commit is contained in:
committed by
Dmitry Mikushin
parent
95a1d0a786
commit
fab1f4990a
@@ -33,10 +33,11 @@ else()
|
|||||||
add_compile_definitions(TRAY_APPKIT=1)
|
add_compile_definitions(TRAY_APPKIT=1)
|
||||||
find_library(COCOA Cocoa REQUIRED)
|
find_library(COCOA Cocoa REQUIRED)
|
||||||
else()
|
else()
|
||||||
|
FIND_PACKAGE(PkgConfig)
|
||||||
PKG_CHECK_MODULES(APPINDICATOR REQUIRED appindicator3-0.1)
|
PKG_CHECK_MODULES(APPINDICATOR REQUIRED appindicator3-0.1)
|
||||||
IF(APPINDICATOR_FOUND)
|
ADD_DEFINITIONS(${APPINDICATOR_CFLAGS})
|
||||||
add_compile_definitions(TRAY_APPINDICATOR=1)
|
LINK_DIRECTORIES(${APPINDICATOR_LIBRARY_DIRS})
|
||||||
ENDIF()
|
add_compile_definitions(TRAY_APPINDICATOR=1)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
@@ -59,7 +60,7 @@ if(UNIX)
|
|||||||
if(APPLE)
|
if(APPLE)
|
||||||
target_link_libraries(tray_example ${COCOA})
|
target_link_libraries(tray_example ${COCOA})
|
||||||
else()
|
else()
|
||||||
target_link_libraries(tray_example APPINDICATOR_STATIC_LIBRARIES)
|
target_link_libraries(tray_example ${APPINDICATOR_LIBRARIES})
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user