mirror of
https://github.com/bylaws/libadrenotools
synced 2024-11-21 14:29:15 -07:00
27 lines
860 B
CMake
27 lines
860 B
CMake
cmake_minimum_required(VERSION 3.14)
|
|
|
|
if(NOT ${CMAKE_ANDROID_ARCH_ABI} STREQUAL arm64-v8a)
|
|
message(FATAL_ERROR "Unsupported target architecture: ${CMAKE_ANDROID_ARCH_ABI}. Please make an issue on the repo!")
|
|
endif()
|
|
|
|
project(adrenotools LANGUAGES CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 17)
|
|
|
|
include_directories(lib/linkernsbypass)
|
|
add_subdirectory(lib/linkernsbypass)
|
|
|
|
set(LIB_SOURCES src/bcenabler.cpp
|
|
src/driver.cpp
|
|
include/adrenotools/bcenabler.h
|
|
include/adrenotools/driver.h
|
|
include/adrenotools/priv.h)
|
|
|
|
add_library(adrenotools ${LIB_SOURCES})
|
|
|
|
target_include_directories(adrenotools PUBLIC include)
|
|
target_include_directories(adrenotools PRIVATE .)
|
|
target_compile_options(adrenotools PRIVATE -Wall -Wextra)
|
|
target_link_libraries(adrenotools vulkan android linkernsbypass)
|
|
|
|
add_subdirectory(src/hook)
|