try fix cmake

This commit is contained in:
yyc12345 2023-08-31 10:20:10 +08:00
parent ac274d11ab
commit 1fdc0394b9
2 changed files with 27 additions and 16 deletions

View File

@ -9,30 +9,40 @@ find_package(Iconv REQUIRED)
set(CMAKE_CXX_STANDARD 20) set(CMAKE_CXX_STANDARD 20)
set(libcmo_headers ".") set(libcmo_headers ".")
set(libcmo_sources
CKGlobals.cpp set(libcmo_vt_src
CKFile.cpp
CKFileReader.cpp
CKFileWriter.cpp
CKMinContext.cpp
CKStateChunk.cpp
VxMemoryMappedFile.cpp
VTEncoding.cpp
VTUtils.cpp VTUtils.cpp
VTEncoding.cpp
) )
set(libcmo_managers_sources set(libcmo_ck2_src
CKManagerImplements/CKBaseManager.cpp CK2/CKContext.cpp
CK2/CKFileOthers.cpp
CK2/CKFileReader.cpp
CK2/CKFileWriter.cpp
CK2/CKGlobals.cpp
CK2/CKStateChunk.cpp
) )
set(libcmo_objects_sources set(libcmo_ck2_mgr_src
CKObjectImplements/CKObject.cpp 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 # create static library
add_library(LibCmo add_library(LibCmo
STATIC STATIC
${libcmo_sources} ${libcmo_vt_src}
${libcmo_managers_sources} ${libcmo_ck2_src}
${libcmo_objects_sources} ${libcmo_ck2_mgr_src}
${libcmo_ck2_obj_src}
${libcmo_vxmath_src}
${libcmo_xcontainer_src}
) )
target_link_libraries(LibCmo target_link_libraries(LibCmo
PRIVATE PRIVATE

View File

@ -11,6 +11,7 @@ set(unvirt_sources
StringHelper.cpp StringHelper.cpp
StructFormatter.cpp StructFormatter.cpp
TerminalHelper.cpp TerminalHelper.cpp
UnvirtContext.cpp
Unvirt.cpp Unvirt.cpp
) )