blob: 82390ebd82d81a9acd1b61a4c346fb4eb63d4ef2 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
|
#
# setup
#
set( MT19937AR_SOURCES
"${MT19937AR_SOURCE_DIR}/mt19937ar.c"
)
set( COMMON_SOURCES
"${COMMON_SOURCE_DIR}/core.c"
"${COMMON_SOURCE_DIR}/db.c"
"${COMMON_SOURCE_DIR}/ers.c"
# "${COMMON_SOURCE_DIR}/grfio.c"
"${COMMON_SOURCE_DIR}/lock.c"
"${COMMON_SOURCE_DIR}/malloc.c"
# "${COMMON_SOURCE_DIR}/mapindex.c"
"${COMMON_SOURCE_DIR}/md5calc.c"
# "${COMMON_SOURCE_DIR}/nullpo.c"
"${COMMON_SOURCE_DIR}/plugins.c"
"${COMMON_SOURCE_DIR}/random.c"
"${COMMON_SOURCE_DIR}/showmsg.c"
"${COMMON_SOURCE_DIR}/socket.c"
"${COMMON_SOURCE_DIR}/strlib.c"
"${COMMON_SOURCE_DIR}/timer.c"
"${COMMON_SOURCE_DIR}/utils.c"
)
set( COMMON_SQL_SOURCES
"${COMMON_SOURCE_DIR}/sql.c"
)
set( LOGIN_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/login.c"
)
set( LOGIN_TXT_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/account_txt.c"
"${CMAKE_CURRENT_SOURCE_DIR}/ipban_txt.c"
"${CMAKE_CURRENT_SOURCE_DIR}/loginlog_txt.c"
)
set( LOGIN_SQL_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/account_sql.c"
"${CMAKE_CURRENT_SOURCE_DIR}/ipban_sql.c"
"${CMAKE_CURRENT_SOURCE_DIR}/loginlog_sql.c"
)
#
# targets
#
add_subdirectory( txt )
add_subdirectory( sql )
|