aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/CMakeLists.txt
blob: 93034bb626f4308db3ca678779416adda34bad96 (plain)
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
set(CRU_OSX_GUI_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx/gui)

add_library(cru_osx_gui SHARED
	Cursor.mm
	InputMethod.mm
	Keyboard.mm
	Resource.cpp
	UiApplication.mm
	Window.mm

	InputMethodPrivate.h
	CursorPrivate.h
	WindowPrivate.h
)

target_sources(cru_osx_gui PUBLIC
	${CRU_OSX_GUI_INCLUDE_DIR}/InputMethod.hpp
	${CRU_OSX_GUI_INCLUDE_DIR}/Keyboard.hpp
	${CRU_OSX_GUI_INCLUDE_DIR}/Resource.hpp
	${CRU_OSX_GUI_INCLUDE_DIR}/UiApplication.hpp
	${CRU_OSX_GUI_INCLUDE_DIR}/Window.hpp
)

find_library(APPKIT AppKit REQUIRED)

target_link_libraries(cru_osx_gui PUBLIC cru_platform_gui cru_osx_graphics_quartz ${APPKIT})