2019-08-16 14:24:47 +00:00
|
|
|
cmake_minimum_required(VERSION 3.0)
|
|
|
|
project(angel_security)
|
|
|
|
set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
|
|
|
|
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake_dart_utils/cmake")
|
|
|
|
find_package(Dart REQUIRED)
|
2019-08-16 14:42:40 +00:00
|
|
|
include_directories(libinjection/src)
|
|
|
|
add_subdirectory(libinjection/src)
|
|
|
|
add_dart_native_extension(angel_security_native lib/src/native/angel_security.c)
|
|
|
|
target_link_libraries(angel_security_native injection)
|
2019-08-16 14:43:25 +00:00
|
|
|
install(TARGETS angel_security_native injection LIBRARY DESTINATION "${CMAKE_CURRENT_LIST_DIR}/lib/src")
|