mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 05:05:19 -05:00
* Build refactoring and initial plugin support * Possibly fixed linux / mac build * Added libdl to libglad build script * Add glfw to imgui dependencies * Refactored common functionality into "libimhex" for plugins * Added plugin loading and example plugin * Added proper API for creating a custom view and a custom tools entry with plugins
17 lines
501 B
CMake
17 lines
501 B
CMake
cmake_minimum_required(VERSION 3.16)
|
|
project(example)
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../../external/ImGui ${CMAKE_CURRENT_BINARY_DIR}/external/ImGui)
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../libimhex ${CMAKE_CURRENT_BINARY_DIR}/plugins/libimhex)
|
|
|
|
set(CMAKE_SHARED_LIBRARY_PREFIX "plugin")
|
|
|
|
add_library(example SHARED
|
|
source/plugin_example.cpp
|
|
)
|
|
|
|
target_include_directories(example PUBLIC include)
|
|
target_link_libraries(example imgui libimhex)
|