dedicated fix

This commit is contained in:
gmueller 2011-01-14 21:09:14 +01:00
parent 45e085b370
commit 2915c8a030
3 changed files with 11 additions and 13 deletions

View File

@ -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)
@ -48,7 +50,11 @@ endif(UNIX)
target_link_libraries(gremlin
enet ${PLATFORM_LIBRARIES}
)
target_link_libraries(gremlin_dedicated
enet ${PLATFORM_LIBRARIES}
)
if (ENABLE_VIDEO)
# set dependencies
add_dependencies( gremlin
@ -66,4 +72,4 @@ if (ENABLE_VIDEO)
target_link_libraries(gremlin
glfw spark
)
endif(ENABLE_VIDEO)
endif(ENABLE_VIDEO)

View File

@ -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;

View File

@ -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();