Debian Codegraph @

src/CMakeLists.txt

raw
1 #first setup the includes and link paths
2 include_directories(${CMAKE_BINARY_DIR} ${CMAKE_SOURCE_DIR}/src)
3
4 # the following line makes sure all targets will lookup local libraries
5 # when referenced by short names
6 link_directories(${CMAKE_BINARY_DIR}/src/common
7 ${CMAKE_BINARY_DIR}/src/compat
8 ${CMAKE_BINARY_DIR}/src/win32)
9
10 #this is needed to be compatible with existent code
11 add_definitions("-DHAVE_CONFIG_H")
12
13 if(WITH_FLAG_WALL)
14 add_definitions("-Wall")
15 endif(WITH_FLAG_WALL)
16
17 if(WITH_FLAG_ANSIPEDANTIC)
18 add_definitions("-pedantic -ansi")
19 endif(WITH_FLAG_ANSIPEDANTIC)
20
21 if(LUA_FOUND)
22 add_definitions("-DWITH_LUA")
23 endif(LUA_FOUND)
24
25 if(MYSQL_FOUND)
26 add_definitions("-DWITH_SQL_MYSQL")
27 endif(MYSQL_FOUND)
28 if(SQLITE3_FOUND)
29 add_definitions("-DWITH_SQL_SQLITE3")
30 endif(SQLITE3_FOUND)
31 if(PGSQL_FOUND)
32 add_definitions("-DWITH_SQL_PGSQL")
33 endif(PGSQL_FOUND)
34
35 if (WITH_WIN32_GUI)
36 add_definitions("-DWIN32_GUI")
37 endif (WITH_WIN32_GUI)
38
39 subdirs(compat common win32 bntrackd client bniutils bnpass)
40
41 if(WITH_BNETD)
42 add_subdirectory(bnetd)
43 endif(WITH_BNETD)
44
45 if(WITH_D2CS)
46 add_subdirectory(d2cs)
47 endif(WITH_D2CS)
48
49 if(WITH_D2DBS)
50 add_subdirectory(d2dbs)
51 endif(WITH_D2DBS)
52
53 if(CMAKE_TESTING_ENABLED)
54 add_subdirectory(test)
55 endif(CMAKE_TESTING_ENABLED)
56