2024-01-21 18:39:32 +01:00
|
|
|
project(updater)
|
2023-10-21 20:40:24 +02:00
|
|
|
|
2023-12-30 19:11:33 +01:00
|
|
|
add_executable(updater
|
2023-10-21 20:40:24 +02:00
|
|
|
source/main.cpp
|
|
|
|
)
|
|
|
|
|
2024-01-04 00:37:56 +01:00
|
|
|
target_compile_definitions(updater PRIVATE IMHEX_PROJECT_NAME="${PROJECT_NAME}")
|
2024-01-21 18:39:32 +01:00
|
|
|
target_link_libraries(updater PRIVATE libimhex ${FMT_LIBRARIES})
|
2023-12-30 19:11:33 +01:00
|
|
|
add_dependencies(main updater)
|
|
|
|
|
|
|
|
if (APPLE)
|
|
|
|
set(OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}/${BUNDLE_NAME}/Contents/MacOS")
|
|
|
|
else ()
|
|
|
|
set(OUTPUT_DIRECTORY "${CMAKE_BINARY_DIR}")
|
|
|
|
endif()
|
|
|
|
|
2023-10-21 20:40:24 +02:00
|
|
|
set_target_properties(updater PROPERTIES
|
|
|
|
OUTPUT_NAME "imhex-updater"
|
2023-12-30 19:11:33 +01:00
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}
|
2023-10-21 20:40:24 +02:00
|
|
|
)
|