| 1 |
set(D2CS_SOURCES |
| 2 |
bit.h bnetd.cpp bnetd.h cmdline.cpp cmdline.h connection.cpp |
| 3 |
connection.h d2charfile.cpp d2charfile.h d2charlist.cpp d2charlist.h |
| 4 |
d2gs.cpp d2gs.h d2ladder.cpp d2ladder.h game.cpp game.h gamequeue.cpp |
| 5 |
gamequeue.h handle_bnetd.cpp handle_bnetd.h handle_d2cs.cpp |
| 6 |
handle_d2cs.h handle_d2gs.cpp handle_d2gs.h handle_init.cpp |
| 7 |
handle_init.h handle_signal.cpp handle_signal.h main.cpp net.cpp |
| 8 |
net.h prefs.cpp prefs.h s2s.cpp s2s.h server.cpp server.h |
| 9 |
serverqueue.h serverqueue.cpp setup.h version.h ../win32/d2cs_winmain.cpp |
| 10 |
../win32/d2cs_resource.h ../win32/d2cs_resource.rc) |
| 11 |
|
| 12 |
if(WITH_WIN32_GUI) |
| 13 |
add_executable(d2cs WIN32 ${D2CS_SOURCES}) |
| 14 |
else(WITH_WIN32_GUI) |
| 15 |
add_executable(d2cs ${D2CS_SOURCES}) |
| 16 |
endif(WITH_WIN32_GUI) |
| 17 |
|
| 18 |
target_link_libraries(d2cs common compat win32 ${NETWORK_LIBRARIES}) |
| 19 |
install(TARGETS d2cs DESTINATION ${SBINDIR}) |