diff options
| author | Peter LaFosse <peter@vector35.com> | 2023-08-09 09:17:20 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2023-12-02 08:43:28 -0500 |
| commit | 9393d7166944c6cba3d808b976a8b73c40d2a8ea (patch) | |
| tree | 13c1d75b907d69175a47c81d940ad2c2b4b1113d /platform/windows-kernel/CMakeLists.txt | |
| parent | 577025979aee0204ce3c5f80a346e5b898e0b023 (diff) | |
Add windows kernel platform
Diffstat (limited to 'platform/windows-kernel/CMakeLists.txt')
| -rw-r--r-- | platform/windows-kernel/CMakeLists.txt | 33 |
1 files changed, 33 insertions, 0 deletions
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() |
