summaryrefslogtreecommitdiffstats
path: root/src/CMakeLists.txt
blob: cb1ec1e932c78fa8bdedf5e89c4f3e07ac0006ab (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(madd madd.cpp)
target_link_libraries(madd Daemon Common Net Core)

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