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)
|
||||
find_library(COCOA Cocoa REQUIRED)
|
||||
else()
|
||||
FIND_PACKAGE(PkgConfig)
|
||||
PKG_CHECK_MODULES(APPINDICATOR REQUIRED appindicator3-0.1)
|
||||
IF(APPINDICATOR_FOUND)
|
||||
ADD_DEFINITIONS(${APPINDICATOR_CFLAGS})
|
||||
LINK_DIRECTORIES(${APPINDICATOR_LIBRARY_DIRS})
|
||||
add_compile_definitions(TRAY_APPINDICATOR=1)
|
||||
ENDIF()
|
||||
endif()
|
||||
endif()
|
||||
endif()
|
||||
@@ -59,7 +60,7 @@ if(UNIX)
|
||||
if(APPLE)
|
||||
target_link_libraries(tray_example ${COCOA})
|
||||
else()
|
||||
target_link_libraries(tray_example APPINDICATOR_STATIC_LIBRARIES)
|
||||
target_link_libraries(tray_example ${APPINDICATOR_LIBRARIES})
|
||||
endif()
|
||||
endif()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user