Remove 3rdparty\getopt

This commit is contained in:
Jonas Kvinge
2024-09-13 20:29:54 +02:00
parent 4b36beec40
commit 23b5ceb6c9
7 changed files with 10 additions and 915 deletions

View File

@@ -278,19 +278,13 @@ if(APPLE)
endif()
if(WIN32)
find_package(getopt-win REQUIRED)
pkg_check_modules(QTSPARKLE qtsparkle-qt${QT_VERSION_MAJOR})
if(QTSPARKLE_FOUND)
set(HAVE_QTSPARKLE ON)
endif()
endif()
if(WIN32)
add_subdirectory(3rdparty/getopt)
set(GETOPT_INCLUDE_DIRS ${CMAKE_CURRENT_SOURCE_DIR}/3rdparty/getopt)
set(GETOPT_LIBRARIES getopt)
add_definitions(-DSTATIC_GETOPT -D_UNICODE)
endif()
if(WIN32 AND NOT MSVC)
# RC compiler
string(REPLACE "gcc" "windres" CMAKE_RC_COMPILER_INIT ${CMAKE_C_COMPILER})