diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-05 19:50:13 -0500 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2024-03-05 20:34:34 -0500 |
| commit | e093c21ed880ac3eb72119be15093ee04f8ce299 (patch) | |
| tree | 9f720ebdc0ae415734b1199ed341668c69710a94 /arch/mips/CMakeLists.txt | |
| parent | 0609276712622908254065546102381466033141 (diff) | |
Move architecture modules into the API repo
Diffstat (limited to 'arch/mips/CMakeLists.txt')
| -rw-r--r-- | arch/mips/CMakeLists.txt | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/arch/mips/CMakeLists.txt b/arch/mips/CMakeLists.txt new file mode 100644 index 00000000..b85248c8 --- /dev/null +++ b/arch/mips/CMakeLists.txt @@ -0,0 +1,48 @@ +cmake_minimum_required(VERSION 3.9 FATAL_ERROR) + +project(arch_mips) + +if(NOT BN_INTERNAL_BUILD) + add_subdirectory(${PROJECT_SOURCE_DIR}/../.. ${PROJECT_BINARY_DIR}/api) +endif() + +file(GLOB SOURCES + *.cpp + *.h + mips/*.c + mips/*.h) + +if(DEMO) + add_library(arch_mips STATIC ${SOURCES}) +else() + add_library(arch_mips SHARED ${SOURCES}) +endif() + +target_include_directories(arch_mips + PRIVATE ${PROJECT_SOURCE_DIR} + PRIVATE ${PROJECT_SOURCE_DIR}/mips) + +if(WIN32) + target_link_directories(arch_mips + PRIVATE ${BN_INSTALL_DIR}) + target_link_libraries(arch_mips binaryninjaapi binaryninjacore) +else() + target_link_libraries(arch_mips binaryninjaapi) +endif() + +set_target_properties(arch_mips PROPERTIES + CXX_STANDARD 17 + CXX_VISIBILITY_PRESET hidden + CXX_STANDARD_REQUIRED ON + C_STANDARD 99 + C_STANDARD_REQUIRED ON + C_VISIBILITY_PRESET hidden + VISIBILITY_INLINES_HIDDEN ON + POSITION_INDEPENDENT_CODE ON) + +if(BN_INTERNAL_BUILD) + plugin_rpath(arch_mips) + set_target_properties(arch_mips PROPERTIES + LIBRARY_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR} + RUNTIME_OUTPUT_DIRECTORY ${BN_CORE_PLUGIN_DIR}) +endif() |
