This commit is contained in:
matcool 2022-06-10 19:44:50 -03:00
commit a8d855bd3b
No known key found for this signature in database
GPG key ID: BF58756086D7AB1C
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
)