Skip to content

Commit

Permalink
core - remove version info
Browse files Browse the repository at this point in the history
  • Loading branch information
shdwmtr committed Jun 25, 2024
1 parent 54a0776 commit 2b253f3
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -136,18 +136,18 @@ if (GITHUB_ACTION_BUILD)
message("${GITHUB_ACTION_BUILD}")
endif()

find_program(WINDRES windres)
if (WINDRES)
add_custom_command(
OUTPUT ${CMAKE_BINARY_DIR}/version.o
COMMAND ${WINDRES} -i ${CMAKE_SOURCE_DIR}/scripts/version.rc -o ${CMAKE_BINARY_DIR}/version.o
DEPENDS ${CMAKE_SOURCE_DIR}/scripts/version.rc
)

add_custom_target(resource DEPENDS ${CMAKE_BINARY_DIR}/version.o)
add_dependencies(Millennium resource)
target_link_libraries(Millennium ${CMAKE_BINARY_DIR}/version.o)
endif()
# find_program(WINDRES windres)
# if (WINDRES)
# add_custom_command(
# OUTPUT ${CMAKE_BINARY_DIR}/version.o
# COMMAND ${WINDRES} -i ${CMAKE_SOURCE_DIR}/scripts/version.rc -o ${CMAKE_BINARY_DIR}/version.o
# DEPENDS ${CMAKE_SOURCE_DIR}/scripts/version.rc
# )

# add_custom_target(resource DEPENDS ${CMAKE_BINARY_DIR}/version.o)
# add_dependencies(Millennium resource)
# target_link_libraries(Millennium ${CMAKE_BINARY_DIR}/version.o)
# endif()

target_link_libraries(Millennium
Boxer
Expand Down

0 comments on commit 2b253f3

Please sign in to comment.