-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (40 loc) · 1.95 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
cmake_minimum_required(VERSION 3.20)
project(zigzag)
set(CMAKE_C_STANDARD 11)
set(CMAKE_C_COMPILER "zig cc")
message(${CMAKE_SYSTEM_NAME})
if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Windows" )
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\gtk-4.0)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\glib-2.0)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\cairo)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\pango-1.0)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\harfbuzz)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\gdk-pixbuf-2.0)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\include\\graphene-1.0)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\lib\\glib-2.0\\include)
INCLUDE_DIRECTORIES(C:\\gtk-build\\gtk\\x64\\release\\lib\\graphene-1.0\\include)
endif()
if ( ${CMAKE_SYSTEM_NAME} STREQUAL "Linux" )
INCLUDE_DIRECTORIES(/usr/include/gtk-4.0)
INCLUDE_DIRECTORIES(/usr/lib64/glib-2.0/include)
INCLUDE_DIRECTORIES(/usr/include/glib-2.0)
INCLUDE_DIRECTORIES(/usr/include/cairo)
INCLUDE_DIRECTORIES(/usr/include/pango-1.0)
INCLUDE_DIRECTORIES(/usr/include/harfbuzz)
INCLUDE_DIRECTORIES(/usr/include/gdk-pixbuf-2.0)
INCLUDE_DIRECTORIES(/usr/include/graphene-1.0)
INCLUDE_DIRECTORIES(/usr/lib64/graphene-1.0/include)
endif()
if ( ${CMAKE_SYSTEM_NAME} STREQUAL "FreeBSD" )
INCLUDE_DIRECTORIES(/usr/local/include/)
INCLUDE_DIRECTORIES(/usr/local/include/gtk-4.0)
INCLUDE_DIRECTORIES(/usr/local/include/glib-2.0)
INCLUDE_DIRECTORIES(/usr/local/include/cairo)
INCLUDE_DIRECTORIES(/usr/local/include/pango-1.0)
INCLUDE_DIRECTORIES(/usr/local/include/harfbuzz)
INCLUDE_DIRECTORIES(/usr/local/include/gdk-pixbuf-2.0)
INCLUDE_DIRECTORIES(/usr/local/include/graphene-1.0)
INCLUDE_DIRECTORIES(/usr/local/lib/graphene-1.0/include)
INCLUDE_DIRECTORIES(/usr/local/lib/glib-2.0/include)
endif()
add_executable(zigzag ./src/main.c)