summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: b705a8935c745321f9d35bd0d12f6c1fc69e17a3 (plain)
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
set(BUILD_SHARED_LIBS ON CACHE BOOL "Build shared libraries")

macro(mad_library name)
  string(TOUPPER ${name} upper_name)
  
  add_library(${name} ${ARGN})
    
  set_target_properties(${name} PROPERTIES DEFINE_SYMBOL "MAD_${upper_name}_EXPORTS")
endmacro(mad_library)

add_subdirectory(Core)
add_subdirectory(Net)
add_subdirectory(Common)
add_subdirectory(Server)
add_subdirectory(Daemon)
add_subdirectory(Client)
add_subdirectory(modules)

include_directories(${INCLUDES}) 

add_executable(mad-server mad-server.cpp)
target_link_libraries(mad-server Server Common Net Core)

add_executable(mad mad.cpp)
target_link_libraries(mad Daemon Common Net Core)

add_executable(madc madc.cpp)
target_link_libraries(madc Client Common Net Core ${EDITLINE_LIBRARY})