diff --git a/ScuffedMinecraft/CMakeLists.txt b/ScuffedMinecraft/CMakeLists.txt index efba575..716b07e 100644 --- a/ScuffedMinecraft/CMakeLists.txt +++ b/ScuffedMinecraft/CMakeLists.txt @@ -3,6 +3,19 @@ set(CMAKE_CXX_STANDARD 20) project(ScuffedMinecraft) +# output directories +set(CMAKE_BINARY_DIR ${CMAKE_SOURCE_DIR}/bin) +set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) +set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}) + +# copy assets +add_custom_target(copy_assets ALL + COMMAND ${CMAKE_COMMAND} -E copy_directory + ${CMAKE_SOURCE_DIR}/assets + ${CMAKE_BINARY_DIR}/assets + COMMENT "Copying assets") + set(CMAKE_EXPORT_COMPILE_COMMANDS ON) add_subdirectory(vendor/imgui)