2020-12-22 17:10:01 +00:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(example)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
2020-12-27 13:12:53 +00:00
|
|
|
if (TARGET ${CMAKE_PROJECT_NAME})
|
|
|
|
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)
|
|
|
|
endif()
|
2020-12-22 17:10:01 +00:00
|
|
|
|
|
|
|
set(CMAKE_SHARED_LIBRARY_PREFIX "plugin")
|
|
|
|
|
|
|
|
add_library(example SHARED
|
|
|
|
source/plugin_example.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
target_include_directories(example PUBLIC include)
|
2020-12-27 13:12:53 +00:00
|
|
|
target_link_libraries(example PRIVATE imgui libimhex)
|