work better

This commit is contained in:
camila314 2022-06-10 16:24:33 -05:00
parent ef4b320e2b
commit 722f6edbd2
2 changed files with 2 additions and 3 deletions

View file

@ -59,7 +59,7 @@ function(setup_geode_mod)
set_source_files_properties(${GEODE_CODEGEN_DIR}/GeneratedSource.cpp PROPERTIES GENERATED 1)
target_sources(${PROJECT_NAME} PRIVATE ${GEODE_CODEGEN_DIR}/GeneratedSource.cpp)
target_include_directories(${PROJECT_NAME} PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories(${PROJECT_NAME} PUBLIC ${GEODE_CODEGEN_DIR}/..)
#target_link_libraries(${PROJECT_NAME} fmt)
if (DEFINED GEODE_CODEGEN_BUILD)

View file

@ -23,9 +23,8 @@ function(create_geode_file proname)
message(STATUS "Installing ${proname} in geode/mods after build")
endif()
add_custom_command(
add_custom_target(${proname}_PACKAGE ALL
DEPENDS ${proname}
OUTPUT ${CMAKE_CURRENT_SOURCE_DIR}/runEveryTime
COMMAND ${GEODE_CLI} pkg ${CMAKE_CURRENT_SOURCE_DIR} $<TARGET_FILE_DIR:${proname}> $<TARGET_FILE_DIR:${proname}>/${proname}.geode ${INSTALL_FLAGS} --cached
VERBATIM USES_TERMINAL
)