-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathCMakeLists.txt
38 lines (29 loc) · 1.35 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
cmake_minimum_required(VERSION 3.6.0)
set(ANDROID_ABI arm64-v8a)
set(ANDROID_NATIVE_API_LEVEL 24)
set(CMAKE_TOOLCHAIN_FILE $ENV{ANDROID_NDK_HOME}/build/cmake/android.toolchain.cmake)
#set(CMAKE_TOOLCHAIN_FILE "")
set(CMAKE_C_COMPILER_TARGET aarch64-none-linux-android24)
set(CMAKE_C_COMPILER $ENV{ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang)
set(CMAKE_CXX_COMPILER_TARGET aarch64-none-linux-android24)
set(CMAKE_CXX_COMPILER $ENV{ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/darwin-x86_64/bin/clang++)
set(CMAKE_CXX_STANDARD 20)
set(CMAKE_OSX_SYSROOT $ENV{ANDROID_NDK_HOME}/toolchains/llvm/prebuilt/darwin-x86_64/sysroot)
set(CMAKE_OSX_DEPLOYMENT_TARGET "")
project(particletuner)
add_compile_definitions(VERSION="dummy_version" ID="particletuner")
include_directories(include)
include_directories(extern)
include_directories(shared)
include_directories(extern/libil2cpp/il2cpp/libil2cpp)
include_directories(extern/codegen/include)
include_directories(extern/beatsaber-hook/shared)
include_directories(extern/questui/shared)
include_directories(extern/modloader/shared)
include_directories(.)
file(GLOB SRC src/*.cpp)
# Import libraries
set(QPM_EXTERN_DIR ${CMAKE_SOURCE_DIR}/extern)
link_directories(extern/)
add_library(particletuner SHARED ${SRC})
target_link_libraries(particletuner beatsaber-hook_1_3_3 codegen_0_8_1 custom-types modloader questui)