small cmake fixes

This commit is contained in:
FelixKratz 2021-10-07 10:14:26 +02:00
parent 21c2ae42cf
commit 9985c38e09

View file

@ -1,10 +1,11 @@
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")
set(CMAKE_C_FLAGS "-std=c99 -Wall -DNDEBUG -Ofast -fvisibility=hidden")
set(CMAKE_OSX_ARCHITECTURES x86_64 arm64 CACHE STRING "")
set(CMAKE_OSX_DEPLOYMENT_TARGET 10.13)
project(sketchybar)
find_library(CARBON Carbon)
find_library(COCOA Cocoa)
find_library(SKYLIGHT SkyLight /System/Library/PrivateFrameworks)