2023-10-21 20:40:24 +02:00
|
|
|
project(updater)
|
|
|
|
|
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}")
|
2023-12-01 14:07:10 +01:00
|
|
|
target_link_libraries(updater PRIVATE libimhex wolv::io ${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
|
|
|
POSITION_INDEPENDENT_CODE ON
|
|
|
|
)
|