forked from github/server
we have a library that contains the parser
This commit is contained in:
parent
735c890ece
commit
5dcb9075ac
1 changed files with 14 additions and 7 deletions
|
@ -85,6 +85,11 @@ TOLUA_BINDING(eressea.pkg bind_eressea.h)
|
||||||
TOLUA_BINDING(settings.pkg kenel/config.h)
|
TOLUA_BINDING(settings.pkg kenel/config.h)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
|
set (PARSER_SRC
|
||||||
|
${DB_SRC}
|
||||||
|
${UTIL_SRC}
|
||||||
|
)
|
||||||
|
|
||||||
set (ERESSEA_SRC
|
set (ERESSEA_SRC
|
||||||
vortex.c
|
vortex.c
|
||||||
academy.c
|
academy.c
|
||||||
|
@ -139,13 +144,10 @@ set (ERESSEA_SRC
|
||||||
${TRIGGERS_SRC}
|
${TRIGGERS_SRC}
|
||||||
${ATTRIBUTES_SRC}
|
${ATTRIBUTES_SRC}
|
||||||
${KERNEL_SRC}
|
${KERNEL_SRC}
|
||||||
${DB_SRC}
|
|
||||||
${UTIL_SRC}
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(CHECK_SRC
|
set(CHECK_SRC
|
||||||
checker.c
|
checker.c
|
||||||
orderfile.c
|
|
||||||
)
|
)
|
||||||
|
|
||||||
set(SERVER_SRC
|
set(SERVER_SRC
|
||||||
|
@ -183,22 +185,28 @@ if(NOT IWYU_PATH)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
add_library(version STATIC ${VERSION_SRC})
|
add_library(version STATIC ${VERSION_SRC})
|
||||||
add_library(game ${ERESSEA_SRC})
|
add_library(parser ${PARSER_SRC})
|
||||||
|
target_link_libraries(parser
|
||||||
|
${CRYPTO_LIBRARIES}
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
#add_executable(checker ${CHECK_SRC})
|
#add_executable(checker ${CHECK_SRC})
|
||||||
|
#target_link_libraries(checker parser)
|
||||||
|
|
||||||
|
add_library(game ${ERESSEA_SRC})
|
||||||
|
target_link_libraries(game parser version)
|
||||||
|
|
||||||
add_executable(eressea ${SERVER_SRC})
|
add_executable(eressea ${SERVER_SRC})
|
||||||
if (IWYU_PATH)
|
if (IWYU_PATH)
|
||||||
set_property(TARGET eressea PROPERTY C_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
|
set_property(TARGET eressea PROPERTY C_INCLUDE_WHAT_YOU_USE ${IWYU_PATH})
|
||||||
endif(IWYU_PATH)
|
endif(IWYU_PATH)
|
||||||
target_link_libraries(game version)
|
|
||||||
target_link_libraries(eressea
|
target_link_libraries(eressea
|
||||||
game
|
game
|
||||||
${TOLUA_LIBRARIES}
|
${TOLUA_LIBRARIES}
|
||||||
${LUA_LIBRARIES}
|
${LUA_LIBRARIES}
|
||||||
${STORAGE_LIBRARIES}
|
${STORAGE_LIBRARIES}
|
||||||
${CLIBS_LIBRARIES}
|
${CLIBS_LIBRARIES}
|
||||||
${CRYPTO_LIBRARIES}
|
|
||||||
${CJSON_LIBRARIES}
|
${CJSON_LIBRARIES}
|
||||||
${INIPARSER_LIBRARIES}
|
${INIPARSER_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
@ -260,7 +268,6 @@ target_link_libraries(test_eressea
|
||||||
${LUA_LIBRARIES}
|
${LUA_LIBRARIES}
|
||||||
${CLIBS_LIBRARIES}
|
${CLIBS_LIBRARIES}
|
||||||
${STORAGE_LIBRARIES}
|
${STORAGE_LIBRARIES}
|
||||||
${CRYPTO_LIBRARIES}
|
|
||||||
${CJSON_LIBRARIES}
|
${CJSON_LIBRARIES}
|
||||||
${INIPARSER_LIBRARIES}
|
${INIPARSER_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue