ModEasy, a c++ library, is an easy to add modding system that is functional out of the box, but also designed to be extendable for whatever you may need.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 

16 lines
647 B

set (SUB_PROJECT_PATH "examples/1_minimal")
# Collect source file paths into a var for later building
file(GLOB_RECURSE SUB_PROJECT_SOURCES "src/*.cpp")
file(GLOB_RECURSE SUB_PROJECT_HEADERS "src/*.h")
#pull in the project's headers
include_directories( ${PROJECT_HEADER_DIR} )
#put the mods directory next to the exicutable in the build folder
file(COPY mods DESTINATION ${CMAKE_BINARY_DIR}/${SUB_PROJECT_PATH})
# Build project and link it
add_executable( 1_Minimal_Example ${SUB_PROJECT_SOURCES} )
target_include_directories( 1_Minimal_Example PRIVATE ${SUB_PROJECT_INCLUDE_DIRS} )
target_link_libraries( 1_Minimal_Example ModdingFramework)