2023-10-21 18:40:24 +00:00
|
|
|
project(updater)
|
|
|
|
|
2023-12-30 18:11:33 +00:00
|
|
|
add_executable(updater
|
2023-10-21 18:40:24 +00:00
|
|
|
source/main.cpp
|
|
|
|
)
|
|
|
|
|
|
|
|
add_compile_definitions(IMHEX_PROJECT_NAME="${PROJECT_NAME}")
|
2023-12-01 13:07:10 +00:00
|
|
|
target_link_libraries(updater PRIVATE libimhex wolv::io ${FMT_LIBRARIES})
|
2023-12-30 18:11:33 +00: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 18:40:24 +00:00
|
|
|
set_target_properties(updater PROPERTIES
|
|
|
|
OUTPUT_NAME "imhex-updater"
|
2023-12-30 18:11:33 +00:00
|
|
|
RUNTIME_OUTPUT_DIRECTORY ${OUTPUT_DIRECTORY}
|
2023-10-21 18:40:24 +00:00
|
|
|
POSITION_INDEPENDENT_CODE ON
|
|
|
|
)
|