psim: more sliding hacks (sigh...)
[k8vavoom.git] / utils / master / CMakeLists.txt
blobaaf20c58b6555511cd15653b9cf74ae956168b94
1 if(ENABLE_MASTER)
2   #include_directories(../common)
4   add_executable(k8vavoom-master
5     src/main.cpp
6     src/netchan.h
7     src/netchan.cpp
8   )
9   set_target_properties(k8vavoom-master PROPERTIES OUTPUT_NAME ../../k8vavoom-master)
10   if(CYGWIN OR MINGW)
11     set_target_properties(k8vavoom-master PROPERTIES LINK_FLAGS "-Wl,--subsystem,console")
12   endif()
13   #target_link_libraries(k8vavoom-master core ${NET_LIBRARIES})
14   target_link_libraries(k8vavoom-master ${NET_LIBRARIES})
15   #add_dependencies(k8vavoom-master core)
17   if(CYGWIN OR MINGW)
18     install(TARGETS k8vavoom-master DESTINATION ${BINDIR}/tools)
19   else()
20     install(TARGETS k8vavoom-master DESTINATION ${BINDIR})
21   endif()
22 endif(ENABLE_MASTER)