141 lines
5.5 KiB
CMake
141 lines
5.5 KiB
CMake
|
|
|
|
# WARNING : automatically generated by utils/generate.py
|
|
cmake_minimum_required(VERSION 2.8)
|
|
|
|
include_directories(
|
|
"../../../myWindows"
|
|
"../../../"
|
|
"../../../include_windows"
|
|
)
|
|
|
|
add_definitions( -DLANG -DEXTERNAL_CODECS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_REENTRANT -DENV_UNIX -DUNICODE -D_UNICODE -DUNIX_USE_WIN_FILE)
|
|
|
|
IF(APPLE)
|
|
add_definitions(-DENV_MACOSX)
|
|
FIND_LIBRARY(COREFOUNDATION_LIBRARY CoreFoundation )
|
|
ENDIF(APPLE)
|
|
|
|
add_executable(7zG
|
|
|
|
"../../../../C/7zCrc.c"
|
|
"../../../../C/7zCrcOpt.c"
|
|
"../../../../C/Alloc.c"
|
|
"../../../../C/CpuArch.c"
|
|
"../../../../C/Threads.c"
|
|
"../../../../CPP/7zip/Archive/Common/OutStreamWithCRC.cpp"
|
|
"../../../../CPP/7zip/Common/CreateCoder.cpp"
|
|
"../../../../CPP/7zip/Common/FilePathAutoRename.cpp"
|
|
"../../../../CPP/7zip/Common/FileStreams.cpp"
|
|
"../../../../CPP/7zip/Common/FilterCoder.cpp"
|
|
"../../../../CPP/7zip/Common/LimitedStreams.cpp"
|
|
"../../../../CPP/7zip/Common/MethodProps.cpp"
|
|
"../../../../CPP/7zip/Common/ProgressUtils.cpp"
|
|
"../../../../CPP/7zip/Common/PropId.cpp"
|
|
"../../../../CPP/7zip/Common/StreamObjects.cpp"
|
|
"../../../../CPP/7zip/Common/StreamUtils.cpp"
|
|
"../../../../CPP/7zip/Common/UniqBlocks.cpp"
|
|
"../../../../CPP/7zip/Compress/CopyCoder.cpp"
|
|
"../../../../CPP/7zip/UI/Common/ArchiveCommandLine.cpp"
|
|
"../../../../CPP/7zip/UI/Common/ArchiveExtractCallback.cpp"
|
|
"../../../../CPP/7zip/UI/Common/ArchiveOpenCallback.cpp"
|
|
"../../../../CPP/7zip/UI/Common/Bench.cpp"
|
|
"../../../../CPP/7zip/UI/Common/DefaultName.cpp"
|
|
"../../../../CPP/7zip/UI/Common/EnumDirItems.cpp"
|
|
"../../../../CPP/7zip/UI/Common/Extract.cpp"
|
|
"../../../../CPP/7zip/UI/Common/ExtractingFilePath.cpp"
|
|
"../../../../CPP/7zip/UI/Common/HashCalc.cpp"
|
|
"../../../../CPP/7zip/UI/Common/LoadCodecs.cpp"
|
|
"../../../../CPP/7zip/UI/Common/OpenArchive.cpp"
|
|
"../../../../CPP/7zip/UI/Common/PropIDUtils.cpp"
|
|
"../../../../CPP/7zip/UI/Common/SetProperties.cpp"
|
|
"../../../../CPP/7zip/UI/Common/SortUtils.cpp"
|
|
"../../../../CPP/7zip/UI/Common/TempFiles.cpp"
|
|
"../../../../CPP/7zip/UI/Common/Update.cpp"
|
|
"../../../../CPP/7zip/UI/Common/UpdateAction.cpp"
|
|
"../../../../CPP/7zip/UI/Common/UpdateCallback.cpp"
|
|
"../../../../CPP/7zip/UI/Common/UpdatePair.cpp"
|
|
"../../../../CPP/7zip/UI/Common/UpdateProduce.cpp"
|
|
"../../../../CPP/7zip/UI/Common/WorkDir.cpp"
|
|
"../../../../CPP/7zip/UI/Common/ZipRegistry.cpp"
|
|
"../../../../CPP/7zip/UI/Explorer/MyMessages.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/ExtractCallback.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/FormatUtils.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/LangUtils.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/OverwriteDialog.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/OverwriteDialog_rc.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/PasswordDialog.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/PasswordDialog_rc.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/ProgramLocation.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/PropertyName.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/ProgressDialog2.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/ProgressDialog2_rc.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/SplitUtils.cpp"
|
|
"../../../../CPP/7zip/UI/FileManager/StringUtils.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/BenchmarkDialog.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/BenchmarkDialog_rc.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/CompressDialog.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/CompressDialog_rc.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/ExtractDialog.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/ExtractDialog_rc.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/ExtractGUI.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/GUI.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/HashGUI.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/UpdateCallbackGUI.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/UpdateCallbackGUI2.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/UpdateGUI.cpp"
|
|
"../../../../CPP/7zip/UI/GUI/wxGUI.cpp"
|
|
"../../../../CPP/Common/CRC.cpp"
|
|
"../../../../CPP/Common/CommandLineParser.cpp"
|
|
"../../../../CPP/Common/IntToString.cpp"
|
|
"../../../../CPP/Common/Lang.cpp"
|
|
"../../../../CPP/Common/ListFileUtils.cpp"
|
|
"../../../../CPP/Common/MyString.cpp"
|
|
"../../../../CPP/Common/MyVector.cpp"
|
|
"../../../../CPP/Common/MyWindows.cpp"
|
|
"../../../../CPP/Common/NewHandler.cpp"
|
|
"../../../../CPP/Common/StringConvert.cpp"
|
|
"../../../../CPP/Common/StringToInt.cpp"
|
|
"../../../../CPP/Common/UTFConvert.cpp"
|
|
"../../../../CPP/Common/Wildcard.cpp"
|
|
"../../../../CPP/Windows/Control/Controls.cpp"
|
|
"../../../../CPP/Windows/Control/Dialog.cpp"
|
|
"../../../../CPP/Windows/DLL.cpp"
|
|
"../../../../CPP/Windows/ErrorMsg.cpp"
|
|
"../../../../CPP/Windows/FileDir.cpp"
|
|
"../../../../CPP/Windows/FileFind.cpp"
|
|
"../../../../CPP/Windows/FileIO.cpp"
|
|
"../../../../CPP/Windows/FileName.cpp"
|
|
"../../../../CPP/Windows/PropVariant.cpp"
|
|
"../../../../CPP/Windows/PropVariantConv.cpp"
|
|
"../../../../CPP/Windows/Registry.cpp"
|
|
"../../../../CPP/Windows/Synchronization.cpp"
|
|
"../../../../CPP/Windows/System.cpp"
|
|
"../../../../CPP/Windows/TimeUtils.cpp"
|
|
"../../../../CPP/Windows/Window.cpp"
|
|
"../../../../CPP/myWindows/wine_GetXXXDefaultLangID.cpp"
|
|
"../../../../CPP/myWindows/wine_date_and_time.cpp"
|
|
)
|
|
|
|
|
|
IF(APPLE)
|
|
add_definitions(-DENV_MACOSX -D__WXMAC__)
|
|
ENDIF(APPLE)
|
|
|
|
find_package(wxWidgets COMPONENTS core base adv REQUIRED)
|
|
|
|
find_library(DL_LIB dl)
|
|
|
|
include( ${wxWidgets_USE_FILE} )
|
|
|
|
link_directories(${DL_LIB_PATH})
|
|
|
|
IF(APPLE)
|
|
TARGET_LINK_LIBRARIES(7zG ${COREFOUNDATION_LIBRARY} ${wxWidgets_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
|
|
ELSE(APPLE)
|
|
IF(HAVE_PTHREADS)
|
|
TARGET_LINK_LIBRARIES(7zG ${wxWidgets_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT} dl)
|
|
ENDIF(HAVE_PTHREADS)
|
|
ENDIF(APPLE)
|
|
|