From 1fdc0394b900f952116bc9cc0310b2f6ef6b47c7 Mon Sep 17 00:00:00 2001 From: yyc12345 Date: Thu, 31 Aug 2023 10:20:10 +0800 Subject: [PATCH] try fix cmake --- LibCmo/CMakeLists.txt | 42 ++++++++++++++++++++++++++---------------- Unvirt/CMakeLists.txt | 1 + 2 files changed, 27 insertions(+), 16 deletions(-) diff --git a/LibCmo/CMakeLists.txt b/LibCmo/CMakeLists.txt index efb0f5a..925d7e1 100644 --- a/LibCmo/CMakeLists.txt +++ b/LibCmo/CMakeLists.txt @@ -9,30 +9,40 @@ find_package(Iconv REQUIRED) set(CMAKE_CXX_STANDARD 20) set(libcmo_headers ".") -set(libcmo_sources - CKGlobals.cpp - CKFile.cpp - CKFileReader.cpp - CKFileWriter.cpp - CKMinContext.cpp - CKStateChunk.cpp - VxMemoryMappedFile.cpp - VTEncoding.cpp + +set(libcmo_vt_src VTUtils.cpp + VTEncoding.cpp ) -set(libcmo_managers_sources - CKManagerImplements/CKBaseManager.cpp +set(libcmo_ck2_src + CK2/CKContext.cpp + CK2/CKFileOthers.cpp + CK2/CKFileReader.cpp + CK2/CKFileWriter.cpp + CK2/CKGlobals.cpp + CK2/CKStateChunk.cpp ) -set(libcmo_objects_sources - CKObjectImplements/CKObject.cpp +set(libcmo_ck2_mgr_src + CK2/MgrImpls/CKBaseManager.cpp +) +set(libcmo_ck2_obj_src + CK2/ObjImpls/CKObject.cpp +) +set(libcmo_vxmath_src + VxMath/VxMemoryMappedFile.cpp +) +set(libcmo_xcontainer_src ) # create static library add_library(LibCmo STATIC - ${libcmo_sources} - ${libcmo_managers_sources} - ${libcmo_objects_sources} + ${libcmo_vt_src} + ${libcmo_ck2_src} + ${libcmo_ck2_mgr_src} + ${libcmo_ck2_obj_src} + ${libcmo_vxmath_src} + ${libcmo_xcontainer_src} ) target_link_libraries(LibCmo PRIVATE diff --git a/Unvirt/CMakeLists.txt b/Unvirt/CMakeLists.txt index ded7d84..f484941 100644 --- a/Unvirt/CMakeLists.txt +++ b/Unvirt/CMakeLists.txt @@ -11,6 +11,7 @@ set(unvirt_sources StringHelper.cpp StructFormatter.cpp TerminalHelper.cpp + UnvirtContext.cpp Unvirt.cpp )