refactored the parser

This commit is contained in:
Marc
2022-10-02 14:02:01 +02:00
parent 3cedc7a182
commit b8fb39e393
12 changed files with 751 additions and 652 deletions
+16 -2
View File
@@ -7,8 +7,22 @@ set(CMAKE_EXPORT_COMPILE_COMMANDS ON CACHE INTERNAL "")
# set the project name
project(ModManager)
set(SOURCES
src/main.c
src/steam.c
src/install.c
src/overlayfs.c
src/getHome.c
src/file.c
src/fomod.c
src/fomod/group.c
src/fomod/xmlUtil.c
src/fomod/parser.c
)
# add the executable
add_executable(ModManager src/main.c src/steam.c src/install.c src/overlayfs.c src/getHome.c src/file.c src/fomod.c)
add_executable(ModManager ${SOURCES})
add_compile_options(-Wall -Wextra -pedantic -Werror)
find_package(PkgConfig REQUIRED)
@@ -25,4 +39,4 @@ target_link_libraries(ModManager ${GLIB_LDFLAGS})
target_link_libraries(ModManager ${LIBXML_LIBRARIES})
target_link_libraries(ModManager ${AUDIT_LIBRARIES})
install(TARGETS ModManager DESTINATION bin)
install(TARGETS ModManager DESTINATION bin)