aboutsummaryrefslogtreecommitdiff
path: root/src/osx/gui/CMakeLists.txt
blob: 27546fc29ec07cbcbf97061ca046860adae19653 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
set(CRU_OSX_GUI_INCLUDE_DIR ${CRU_INCLUDE_DIR}/cru/osx/gui)

add_library(cru_osx_gui SHARED
	Keyboard.mm
	Resource.cpp
	UiApplication.mm
	Window.mm
)

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})