-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
48 lines (34 loc) · 1.25 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
cmake_minimum_required(VERSION 3.1)
project(switchfin)
set(CMAKE_CXX_STANDARD 17)
if(SWITCH)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake)
list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/cmake/Switch)
## Required libraries and utilities
# SwitchTools provide various helper functions for building Switch file formats.
include(SwitchTools)
find_package(Libnx REQUIRED)
include_directories("${PORTLIBS}/include")
include_directories("${LIBNX}/include")
link_directories("${PORTLIBS}/lib")
endif()
add_subdirectory("lib")
add_compile_definitions(DEBUG_HTTP=1)
include_directories("src")
include_directories("${PROJECT_SOURCE_DIR}")
include_directories("${PROJECT_SOURCE_DIR}/lib/")
include_directories("${PROJECT_SOURCE_DIR}/lib/gana")
file(GLOB_RECURSE SWITCHFIN_SRC "src/*")
add_executable(switchfin ${SWITCHFIN_SRC})
target_compile_options(switchfin PRIVATE -Wall -Wextra)
if (SWITCH)
set_target_properties(switchfin PROPERTIES
APP_TITLE "switchfin"
APP_AUTHOR " "
APP_VERSION "0.1.0"
ROMFS ${PROJECT_SOURCE_DIR}/romfs
ICON ${PROJECT_SOURCE_DIR}/icon.jpg)
add_nro_target(switchfin)
endif()
target_link_libraries(switchfin gana mpv curl)
# file(COPY assets DESTINATION ${CMAKE_BINARY_DIR})