Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tray
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Vladislav
tray
Commits
d95445a9
Commit
d95445a9
authored
Jul 02, 2023
by
kimidaisuki22
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try add link lib for other platform.
parent
908a6f4d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
CMakeLists.txt
CMakeLists.txt
+10
-0
No files found.
CMakeLists.txt
View file @
d95445a9
...
...
@@ -10,6 +10,16 @@ target_include_directories(tray
include
)
if
(
UNIX AND NOT APPLE
)
find_package
(
PkgConfig REQUIRED
)
pkg_check_modules
(
APPINDICATOR REQUIRED appindicator3-0.1
)
target_compile_options
(
tray PRIVATE
${
APPINDICATOR_CFLAGS
}
)
target_link_libraries
(
tray PRIVATE
${
APPINDICATOR_LIBRARIES
}
)
target_link_directories
(
tray PRIVATE
${
APPINDICATOR_LIBRARY_DIRS
}
)
elseif
(
APPLE
)
target_link_libraries
(
tray PRIVATE
"-framework Cocoa"
)
endif
()
if
(
CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME
)
add_executable
(
tray_test example/example.c
)
target_link_libraries
(
tray_test PRIVATE tray
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment