|
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)
|