platform/CMakeLists.txt

12 lines
583 B
CMake
Raw Normal View History

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:46:21 +00:00
install(TARGETS angel_security_native
2019-08-16 14:45:53 +00:00
ARCHIVE DESTINATION "${CMAKE_CURRENT_LIST_DIR}/lib/src"
LIBRARY DESTINATION "${CMAKE_CURRENT_LIST_DIR}/lib/src")