Skip to content

Instantly share code, notes, and snippets.

@damnms
Created February 17, 2024 16:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save damnms/7218d584026cb83a34ceeb3d88317a8d to your computer and use it in GitHub Desktop.
Save damnms/7218d584026cb83a34ceeb3d88317a8d to your computer and use it in GitHub Desktop.
CMakeLists.txt for CLion etc. for unrar
cmake_minimum_required(VERSION 3.28)
project(unrar)
set(CMAKE_CXX_STANDARD 11)
set(SOURCES
consio.cpp
rar.cpp
strlist.cpp
strfn.cpp
pathfn.cpp
smallfn.cpp
global.cpp
file.cpp
filefn.cpp
filcreat.cpp
archive.cpp
arcread.cpp
unicode.cpp
system.cpp
crypt.cpp
crc.cpp
rawread.cpp
encname.cpp
resource.cpp
match.cpp
timefn.cpp
rdwrfn.cpp
options.cpp
errhnd.cpp
rarvm.cpp
secpassword.cpp
rijndael.cpp
getbits.cpp
sha1.cpp
sha256.cpp
blake2s.cpp
hash.cpp
extinfo.cpp
extract.cpp
volume.cpp
list.cpp
find.cpp
unpack.cpp
headers.cpp
threadpool.cpp
rs16.cpp
cmddata.cpp
ui.cpp
filestr.cpp
recvol.cpp
rs.cpp
scantree.cpp
qopen.cpp
)
add_executable(unrar)
target_sources(unrar PRIVATE "${SOURCES}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment