-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
66 changed files
with
511 additions
and
11,212 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
if(CMAKE_BUILD_TYPE STREQUAL "Debug") | ||
if(CMAKE_CXX_COMPILER_ID MATCHES "Clang|AppleClang") | ||
add_compile_options(-Weverything) | ||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "GNU") | ||
add_compile_options(-Wall -Wextra) | ||
elseif(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
add_compile_options(/Zi /MTd /MP /EHs /W4) | ||
endif() | ||
elseif(CMAKE_BUILD_TYPE STREQUAL "Release") | ||
if(CMAKE_CXX_COMPILER_ID STREQUAL "MSVC") | ||
add_compile_options(/MT /Oi /MP /EHs /GR- /W0) | ||
add_link_options(/OPT:REF /OPT:ICF) | ||
else() | ||
add_compile_options(-fno-rtti -Wno-unused-function) | ||
endif() | ||
endif() | ||
|
||
include(FetchContent) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
set(FETCHCONTENT_QUIET FALSE) | ||
FetchContent_Declare( | ||
par2-turbo | ||
GIT_REPOSITORY https://github.com/nzbgetcom/par2cmdline-turbo.git | ||
GIT_TAG nzbget | ||
TLS_VERIFY TRUE | ||
GIT_SHALLOW TRUE | ||
GIT_PROGRESS TRUE | ||
) | ||
|
||
add_compile_definitions(HAVE_CONFIG_H PARPAR_ENABLE_HASHER_MD5CRC) | ||
set(BUILD_TOOL OFF CACHE BOOL "") | ||
set(BUILD_LIB ON CACHE BOOL "") | ||
FetchContent_MakeAvailable(par2-turbo) | ||
|
||
set(LIBS ${LIBS} par2-turbo gf16 hasher) | ||
set(INCLUDES ${INCLUDES} ${par2_SOURCE_DIR}/include) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.