From 9393d7166944c6cba3d808b976a8b73c40d2a8ea Mon Sep 17 00:00:00 2001 From: Peter LaFosse Date: Wed, 9 Aug 2023 09:17:20 -0400 Subject: Add windows kernel platform --- platform/windows-kernel/CMakeLists.txt | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 platform/windows-kernel/CMakeLists.txt (limited to 'platform/windows-kernel/CMakeLists.txt') diff --git a/platform/windows-kernel/CMakeLists.txt b/platform/windows-kernel/CMakeLists.txt new file mode 100644 index 00000000..eafe32b9 --- /dev/null +++ b/platform/windows-kernel/CMakeLists.txt @@ -0,0 +1,33 @@ +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) + +project(platform_windows_kernel) + +if(NOT BN_INTERNAL_BUILD) + add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api) +endif() + +file(GLOB SOURCES + *.cpp + *.h) + +if(DEMO) + add_library(platform_windows_kernel STATIC ${SOURCES}) +else() + add_library(platform_windows_kernel SHARED ${SOURCES}) +endif() + +target_link_libraries(platform_windows_kernel binaryninjaapi) + +set_target_properties(platform_windows_kernel PROPERTIES + CXX_STANDARD 17 + CXX_VISIBILITY_PRESET hidden + CXX_STANDARD_REQUIRED ON + VISIBILITY_INLINES_HIDDEN ON + POSITION_INDEPENDENT_CODE ON) + +if(BN_INTERNAL_BUILD) + plugin_rpath(platform_windows_kernel) + set_target_properties(platform_windows_kernel PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} + RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) +endif() -- cgit v1.3.1