structure changes

This commit is contained in:
gmueller 2011-01-17 21:51:17 +01:00
parent 3f00ee4f31
commit caeca7b66e
2 changed files with 37 additions and 0 deletions

22
src/common/CMakeLists.txt Normal file
View File

@ -0,0 +1,22 @@
include_directories (${GREMLIN_SOURCE_DIR}/libs/enet/include)
include_directories (${GREMLIN_SOURCE_DIR}/src)
add_library( common
Application
game
Time
Network
)
add_dependencies( common
enet
)
target_link_libraries(common
enet
)
if (WIN32)
target_link_libraries(common ws2_32 winmm)
endif(WIN32)

15
src/server/CMakeLists.txt Normal file
View File

@ -0,0 +1,15 @@
include_directories (${GREMLIN_SOURCE_DIR}/src/common)
# define executable
add_executable( gremlin_dedicated
server
)
add_dependencies( gremlin_dedicated
common
)
target_link_libraries(gremlin_dedicated
common
)