duckstation

duckstation, but archived from the revision just before upstream changed it to a proprietary software project, this version is the libre one
git clone https://git.neptards.moe/u3shit/duckstation.git
Log | Files | Refs | README | LICENSE

CMakeLists.txt (1451B)


      1 add_executable(updater
      2   updater.cpp
      3   updater.h
      4 )
      5 
      6 target_link_libraries(updater PRIVATE common minizip ZLIB::ZLIB)
      7 
      8 if(WIN32)
      9   target_sources(updater PRIVATE
     10     updater.rc
     11     win32_main.cpp
     12     win32_progress_callback.cpp
     13     win32_progress_callback.h
     14     ../duckstation-qt/vcruntimecheck.cpp
     15   )
     16   target_link_libraries(updater PRIVATE "Comctl32.lib")
     17   set_target_properties(updater PROPERTIES WIN32_EXECUTABLE TRUE)
     18 endif()
     19 
     20 if(APPLE)
     21   set(MAC_SOURCES
     22     cocoa_main.mm
     23     cocoa_progress_callback.mm
     24     cocoa_progress_callback.h
     25   )
     26   target_sources(updater PRIVATE ${MAC_SOURCES})
     27   set_source_files_properties(${MAC_SOURCES} PROPERTIES SKIP_PRECOMPILE_HEADERS TRUE)
     28   find_library(COCOA_LIBRARY Cocoa REQUIRED)
     29   target_link_libraries(updater PRIVATE ${COCOA_LIBRARY})
     30 
     31   if(NOT CMAKE_GENERATOR MATCHES "Xcode" AND NOT SKIP_POSTPROCESS_BUNDLE)
     32     set_target_properties(updater PROPERTIES OUTPUT_NAME "Updater")
     33     set_target_properties(updater PROPERTIES
     34       MACOSX_BUNDLE true
     35       MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/Info.plist.in
     36       OUTPUT_NAME Updater
     37       RUNTIME_OUTPUT_DIRECTORY ${CMAKE_RUNTIME_OUTPUT_DIRECTORY}/DuckStation.app/Contents/Resources
     38     )
     39 
     40     # Copy icon into the bundle
     41     target_sources(updater PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/Updater.icns")
     42     set_source_files_properties("${CMAKE_CURRENT_SOURCE_DIR}/Updater.icns" PROPERTIES MACOSX_PACKAGE_LOCATION Resources)
     43   endif()
     44 endif()