-
-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added cmake system and fix compatibility quirks
- Loading branch information
1 parent
02143a9
commit 21c2ae4
Showing
4 changed files
with
20 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
cmake_minimum_required(VERSION 3.21) | ||
project(sketchybar) | ||
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin) | ||
set(CMAKE_C_STANDARD 99) | ||
set(CMAKE_SOURCE_DIR src) | ||
set(CMAKE_C_FLAGS "-std=c99 -Wall -DNDEBUG -Ofast -fvisibility=hidden -mmacosx-version-min=10.13") | ||
set(CMAKE_OSX_ARCHITECTURES "x86_64;arm64") | ||
find_library(CARBON Carbon) | ||
find_library(COCOA Cocoa) | ||
find_library(SKYLIGHT SkyLight /System/Library/PrivateFrameworks) | ||
add_executable(sketchybar ${CMAKE_SOURCE_DIR}/manifest.m) | ||
target_include_directories (sketchybar PUBLIC ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/misc) | ||
target_link_libraries(sketchybar ${CARBON} ${COCOA} ${SKYLIGHT}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters