Skip to content

Commit

Permalink
Fix tab/space mess
Browse files Browse the repository at this point in the history
  • Loading branch information
firthm01 committed Mar 19, 2024
1 parent bd911d5 commit 976ea2e
Showing 1 changed file with 55 additions and 55 deletions.
110 changes: 55 additions & 55 deletions tools/setup/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,38 +12,38 @@ set(MACOSX_BUNDLE_COPYRIGHT "(C) 2019-2024 BBC, (C) 2020-2021 EBU, (C) 2019-2021
add_executable(setup WIN32 MACOSX_BUNDLE)

set(HEADERS_SETUP
MainComponent.h
WindowBody.h
install_phases/component_initial.h
install_phases/component_license.h
install_phases/component_select_operation.h
install_phases/component_install_locations.h
install_phases/component_error_log.h
install_phases/component_uninstall_confirm.h
install_phases/component_existing_search.h
install_phases/component_processing.h
install_phases/component_complete.h
helpers/manifests.h
${EPS_SHARED_DIR}/helper/resource_paths_juce-file.hpp
${EPS_SHARED_DIR}/update_check_settings_file.h
MainComponent.h
WindowBody.h
install_phases/component_initial.h
install_phases/component_license.h
install_phases/component_select_operation.h
install_phases/component_install_locations.h
install_phases/component_error_log.h
install_phases/component_uninstall_confirm.h
install_phases/component_existing_search.h
install_phases/component_processing.h
install_phases/component_complete.h
helpers/manifests.h
${EPS_SHARED_DIR}/helper/resource_paths_juce-file.hpp
${EPS_SHARED_DIR}/update_check_settings_file.h
)

set(SOURCES_SETUP
Main.cpp
MainComponent.cpp
WindowBody.cpp
install_phases/component_initial.cpp
install_phases/component_license.cpp
install_phases/component_select_operation.cpp
install_phases/component_install_locations.cpp
install_phases/component_error_log.cpp
install_phases/component_uninstall_confirm.cpp
install_phases/component_existing_search.cpp
install_phases/component_processing.cpp
install_phases/component_complete.cpp
helpers/manifests.cpp
${EPS_SHARED_DIR}/binary_data.cpp
${EPS_SHARED_DIR}/update_check_settings_file.cpp
Main.cpp
MainComponent.cpp
WindowBody.cpp
install_phases/component_initial.cpp
install_phases/component_license.cpp
install_phases/component_select_operation.cpp
install_phases/component_install_locations.cpp
install_phases/component_error_log.cpp
install_phases/component_uninstall_confirm.cpp
install_phases/component_existing_search.cpp
install_phases/component_processing.cpp
install_phases/component_complete.cpp
helpers/manifests.cpp
${EPS_SHARED_DIR}/binary_data.cpp
${EPS_SHARED_DIR}/update_check_settings_file.cpp
)

source_group("Header Files" FILES ${HEADERS_SETUP})
Expand All @@ -55,43 +55,43 @@ target_sources(setup
)

if(APPLE)
target_sources(setup PRIVATE icon.icns)
set_target_properties(setup PROPERTIES
target_sources(setup PRIVATE icon.icns)
set_target_properties(setup PROPERTIES
OUTPUT_NAME "Setup EAR Production Suite"
XCODE_ATTRIBUTE_EXECUTABLE_NAME "Setup EAR Production Suite"
MACOSX_BUNDLE TRUE)
set_source_files_properties(icon.icns PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/install_list.xml $<TARGET_FILE_DIR:setup>/../Resources/install_list.xml
)
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/uninstall_list.xml $<TARGET_FILE_DIR:setup>/../Resources/uninstall_list.xml
)
set_source_files_properties(icon.icns PROPERTIES
MACOSX_PACKAGE_LOCATION "Resources")
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/install_list.xml $<TARGET_FILE_DIR:setup>/../Resources/install_list.xml
)
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/uninstall_list.xml $<TARGET_FILE_DIR:setup>/../Resources/uninstall_list.xml
)
endif()

if(WIN32)
target_sources(setup
PRIVATE
${HEADERS_SETUP}
${SOURCES_SETUP}
)
set_target_properties(setup PROPERTIES
target_sources(setup
PRIVATE
${HEADERS_SETUP}
${SOURCES_SETUP}
)
set_target_properties(setup PROPERTIES
OUTPUT_NAME "setup"
WIN32_EXECUTABLE TRUE)
target_link_options(setup PRIVATE "/MANIFESTUAC:level='requireAdministrator'")
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/install_list.xml $<TARGET_FILE_DIR:setup>/SetupFiles/install_list.xml
)
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/uninstall_list.xml $<TARGET_FILE_DIR:setup>/SetupFiles/uninstall_list.xml
)
target_link_options(setup PRIVATE "/MANIFESTUAC:level='requireAdministrator'")
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/install_list.xml $<TARGET_FILE_DIR:setup>/SetupFiles/install_list.xml
)
add_custom_command(TARGET setup POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy ${PROJECT_SOURCE_DIR}/packaging/uninstall_list.xml $<TARGET_FILE_DIR:setup>/SetupFiles/uninstall_list.xml
)
endif()

add_custom_command(TARGET setup PRE_BUILD
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/helpers
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/helpers/gen_license_header.cmake
)
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/helpers
COMMAND ${CMAKE_COMMAND} -P ${CMAKE_CURRENT_SOURCE_DIR}/helpers/gen_license_header.cmake
)

if(APPLE AND NOT EPS_CI)

Expand Down

0 comments on commit 976ea2e

Please sign in to comment.