2020-12-22 18:10:01 +01:00
|
|
|
cmake_minimum_required(VERSION 3.16)
|
|
|
|
project(example)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 20)
|
|
|
|
|
2020-12-27 15:39:06 +01:00
|
|
|
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../libimhex ${CMAKE_CURRENT_BINARY_DIR}/plugins/libimhex)
|
2020-12-22 18:10:01 +01:00
|
|
|
|
|
|
|
set(CMAKE_SHARED_LIBRARY_PREFIX "plugin")
|
|
|
|
|
|
|
|
add_library(example SHARED
|
|
|
|
source/plugin_example.cpp
|
|
|
|
)
|
|
|
|
|
2020-12-27 15:39:06 +01:00
|
|
|
target_include_directories(example PRIVATE include)
|
|
|
|
target_link_libraries(example PRIVATE libimhex)
|