-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
switch.cmake
40 lines (34 loc) · 1.11 KB
/
switch.cmake
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
# TODO: needed Externals switch-freetype
# Add any additional include paths here
include_directories(
${CMAKE_BINARY_DIR}
$ENV{DEVKITPRO}/libnx/include
$ENV{DEVKITPRO}/portlibs/switch/include
$ENV{DEVKITPRO}/portlibs/switch/include/freetype2
${CMAKE_SOURCE_DIR}/ext/mupdf/src/mupdf_lib/include
${CMAKE_SOURCE_DIR}/ext/tinyxml2
"${SOURCE_DIR}/include"
)
# Add any additional library paths here
# ${CMAKE_CURRENT_BINARY_DIR} lets you use any library currently being built
link_directories(
${CMAKE_CURRENT_BINARY_DIR}
${CMAKE_SOURCE_DIR}/ext/mupdf/src/mupdf_lib/build/switch/release
)
add_executable(bookr-modern
${COMMON_SRCS}
${bk_resources}
data/fonts/res_txtfont.c
data/fonts/res_uifont.c
src/graphics/fzscreen_switch.cpp
src/graphics/fzfontvita.cpp
src/filetypes/bkmudocument.cpp
)
# Library to link to (drop the -l prefix). This will mostly be stubs.
#-lpsp2shell -lSceSysmodule_stub -lSceNet_stub \ -lSceNetCtl_stub -lSceKernel_stub -lScePower_stub -lSceAppMgr_stub
#mupdf -ldjvulibre -lraster -lworld -lfonts -lstream -lbase -lm
target_link_libraries(bookr-modern
mupdf
mupdfthird
tinyxml2
)