add_executable(hammerpp main.cpp editor.cpp render.cpp viewport.cpp ui.cpp) target_link_libraries(hammerpp PRIVATE hmap hpp_imgui raylib) target_compile_definitions(hammerpp PRIVATE HPP_ASSET_DIR="${CMAKE_SOURCE_DIR}/assets") if(MSVC) target_compile_options(hammerpp PRIVATE /W3 /utf-8) endif() # keep the assets next to the executable so the editor also runs from anywhere add_custom_command(TARGET hammerpp POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/assets $/assets COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/samples $/samples)