dedicated fix
This commit is contained in:
parent
45e085b370
commit
2915c8a030
@ -26,16 +26,18 @@ add_executable( gremlin
|
||||
# define executable
|
||||
add_executable( gremlin_dedicated
|
||||
Application
|
||||
main
|
||||
server
|
||||
game
|
||||
Time
|
||||
network
|
||||
${VIDEO_SOURCES}
|
||||
)
|
||||
|
||||
add_dependencies( gremlin
|
||||
enet
|
||||
)
|
||||
add_dependencies( gremlin_dedicated
|
||||
enet
|
||||
)
|
||||
|
||||
if (WIN32)
|
||||
set(PLATFORM_LIBRARIES ws2_32 winmm)
|
||||
@ -49,6 +51,10 @@ target_link_libraries(gremlin
|
||||
enet ${PLATFORM_LIBRARIES}
|
||||
)
|
||||
|
||||
target_link_libraries(gremlin_dedicated
|
||||
enet ${PLATFORM_LIBRARIES}
|
||||
)
|
||||
|
||||
if (ENABLE_VIDEO)
|
||||
# set dependencies
|
||||
add_dependencies( gremlin
|
||||
|
@ -2,14 +2,6 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
class Server : public Application {
|
||||
public:
|
||||
virtual void initialize(int argc, char ** argv) {
|
||||
Application::initialize(argc, argv);
|
||||
setMaster(true);
|
||||
}
|
||||
};
|
||||
|
||||
int main(int argc, char ** argv) {
|
||||
try {
|
||||
Client app;
|
||||
|
@ -5,7 +5,7 @@
|
||||
int main(int argc, char ** argv) {
|
||||
try {
|
||||
Application app;
|
||||
app.setMaster();
|
||||
app.setMaster(true);
|
||||
app.initialize(argc, argv);
|
||||
while (app.isRunning())
|
||||
app.update();
|
||||
|
Loading…
Reference in New Issue
Block a user