* Migrate all add_definitions to target_compile_definitions * Remove -D from preprocessor definitions added by target_compile_definitions (unneccessary, cmake strips it anyway) * Fixed NO_BUFFERPOOL not being set on g3d if jemalloc is used * Moved library/compiler specific compile flag settings spread all over various CMakeLists to their related library/compiler file * Remove ancient manual link flag settings for worldserver
74 lines
1.6 KiB
CMake
74 lines
1.6 KiB
CMake
set(HEADER_FILES
|
|
src/CascCommon.h
|
|
src/CascLib.h
|
|
src/CascPort.h
|
|
src/common/Array.h
|
|
src/common/Common.h
|
|
src/common/Csv.h
|
|
src/common/Directory.h
|
|
src/common/FileStream.h
|
|
src/common/FileTree.h
|
|
src/common/ListFile.h
|
|
src/common/Map.h
|
|
src/common/Mime.h
|
|
src/common/Path.h
|
|
src/common/RootHandler.h
|
|
src/common/Sockets.h
|
|
src/jenkins/lookup.h
|
|
)
|
|
|
|
set(SRC_FILES
|
|
src/common/Common.cpp
|
|
src/common/Directory.cpp
|
|
src/common/Csv.cpp
|
|
src/common/FileStream.cpp
|
|
src/common/FileTree.cpp
|
|
src/common/ListFile.cpp
|
|
src/common/Mime.cpp
|
|
src/common/RootHandler.cpp
|
|
src/common/Sockets.cpp
|
|
src/hashes/md5.cpp
|
|
src/hashes/sha1.cpp
|
|
src/jenkins/lookup3.c
|
|
src/overwatch/apm.cpp
|
|
src/overwatch/cmf.cpp
|
|
src/overwatch/aes.cpp
|
|
src/CascDecompress.cpp
|
|
src/CascDecrypt.cpp
|
|
src/CascDumpData.cpp
|
|
src/CascFiles.cpp
|
|
src/CascFindFile.cpp
|
|
src/CascIndexFiles.cpp
|
|
src/CascOpenFile.cpp
|
|
src/CascOpenStorage.cpp
|
|
src/CascReadFile.cpp
|
|
src/CascRootFile_Diablo3.cpp
|
|
src/CascRootFile_Install.cpp
|
|
src/CascRootFile_MNDX.cpp
|
|
src/CascRootFile_Text.cpp
|
|
src/CascRootFile_TVFS.cpp
|
|
src/CascRootFile_OW.cpp
|
|
src/CascRootFile_WoW.cpp
|
|
)
|
|
|
|
add_library(casc STATIC ${SRC_FILES} ${HEADER_FILES})
|
|
|
|
target_include_directories(casc
|
|
PUBLIC
|
|
${CMAKE_CURRENT_SOURCE_DIR}/src
|
|
PRIVATE
|
|
${CMAKE_SOURCE_DIR}/dep)
|
|
|
|
target_compile_definitions(casc PUBLIC __SYS_ZLIB CASCLIB_NO_AUTO_LINK_LIBRARY CASCLIB_NODEBUG)
|
|
|
|
target_link_libraries(casc
|
|
PRIVATE
|
|
trinity-dependency-interface
|
|
PUBLIC
|
|
zlib)
|
|
|
|
set_target_properties(casc
|
|
PROPERTIES
|
|
FOLDER
|
|
"dep")
|