Add project files.

This commit is contained in:
alejo committed 2026-10-25 03:29:04 -03:00
commit a9ae435321
52 files changed
+65378

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
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 $<TARGET_FILE_DIR:hammerpp>/assets
COMMAND ${CMAKE_COMMAND} -E copy_directory ${CMAKE_SOURCE_DIR}/samples $<TARGET_FILE_DIR:hammerpp>/samples)