forked from mmozeiko/pkgi
-
Notifications
You must be signed in to change notification settings - Fork 99
/
CMakeLists.txt
39 lines (29 loc) · 951 Bytes
/
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
cmake_minimum_required(VERSION 3.6)
project(pkgj)
if(NOT HOST_BUILD)
if(NOT BUILD_VITA)
message(FATAL_ERROR "Vita toolchain not imported, fix the conan recipe")
endif()
include("$ENV{VITASDK}/share/vita.cmake" REQUIRED)
endif()
# useful for memory alignment constraints
set(CMAKE_CXX_STANDARD 17)
set(VITA_APP_NAME "PKGj")
set(VITA_TITLEID "PKGJ00000")
set(VITA_VERSION "0.57")
option(PKGI_ENABLE_LOGGING "enables debug logging over udp multicast" OFF)
if(PKGI_ENABLE_LOGGING)
add_definitions(-DPKGI_ENABLE_LOGGING)
endif()
add_definitions(-DPKGI_VERSION="${VITA_VERSION}" -D_GNU_SOURCE)
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -Wextra -fvisibility=hidden")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -fvisibility=hidden")
find_package(fmt REQUIRED)
find_package(Boost REQUIRED)
find_package(cereal REQUIRED)
find_package(libzip REQUIRED)
if(HOST_BUILD)
include(host.cmake)
else()
include(cross.cmake)
endif()