-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
69 lines (60 loc) · 1.49 KB
/
CMakeLists.txt
File metadata and controls
69 lines (60 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
cmake_minimum_required(VERSION 2.8)
#add_definitions(
# -DSFML_STATIC
#)
project(cppThing)
include(CheckIncludeFiles)
SET(CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
find_package(SFML 2 REQUIRED system window graphics network)
if(SFML_FOUND)
include_directories(${SFML_INCLUDE_DIR})
endif()
find_package(ENet REQUIRED)
if(ENet_FOUND)
message(ERROR ${ENet_LIBRARIES})
endif()
file(COPY ${CMAKE_CURRENT_SOURCE_DIR}/res DESTINATION ${CMAKE_CURRENT_BINARY_DIR})
add_library(Core
network/ClientToken.cpp
network/packet.cpp
network/PlayerUpdate.cpp
network/CubeUpdate.cpp
network/PlayerAdd.cpp
network/UserMessage.cpp
network/NetworkClient.cpp
network/PlayerDelete.cpp
network/TextMessage.cpp
network/UpdatePlayerInfo.cpp
entity/cube.cpp
entity/entity.cpp
entity/player.cpp
entity/world.cpp
ui/cubeDisplay.cpp
ui/layerDisplay.cpp
ui/menuItem.cpp
ui/menuTextInput.cpp
ui/uiElement.cpp
ui/ChatBox.cpp
menu/mainMenu.cpp
menu/connectMenu.cpp
menu/optionMenu.cpp
mouse.cpp
config.cpp
screen.cpp
ticker.cpp
utils/quadtree.cpp
utils/vectorutils.cpp
server.cpp
)
add_executable(cppThing
main.cpp
game.cpp
imageManager.cpp
Renderer.cpp
client.cpp
)
add_executable(ds
dedi/dedi.cpp
)
TARGET_LINK_LIBRARIES(cppThing Core ${SFML_WINDOW_LIBRARY} ${SFML_NETWORK_LIBRARY} ${SFML_GRAPHICS_LIBRARY} ${SFML_SYSTEM_LIBRARY} ${ENet_LIBRARY})
TARGET_LINK_LIBRARIES(ds Core ${SFML_NETWORK_LIBRARY} ${SFML_SYSTEM_LIBRARY} ${ENet_LIBRARY})