-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
29 lines (22 loc) · 1 KB
/
CMakeLists.txt
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
# CMakeList.txt : Top-level CMake project file, do global configuration
# and include sub-projects here.
#
cmake_minimum_required (VERSION 3.13)
project ("pokefight")
# dependencies headers
set (CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake)
set (DEPS_DIR ${PROJECT_SOURCE_DIR}/dependencies/win64-msvc)
find_package (SDL2 REQUIRED)
find_package (SDL2_IMAGE REQUIRED)
find_package (SDL2_TTF REQUIRED)
find_package (SDL2_MIXER REQUIRED)
find_package (SDL2_GFX REQUIRED)
find_package (SDL2_NET REQUIRED)
# Include sub-projects.
add_subdirectory ("pokefight-client")
add_subdirectory ("pokefight-server")
# dependencies libraries
target_link_libraries ("pokefight-client" ${SDL2MAIN_LIBRARY} ${SDL2_LIBRARY} ${SDL2_TTF_LIBRARY} ${SDL2_IMAGE_LIBRARY} ${SDL2_MIXER_LIBRARY} ${SDL2_GFX_LIBRARY} ${SDL2_NET_LIBRARY})
set_target_properties ("pokefight-client" PROPERTIES LINK_FLAGS /SUBSYSTEM:WINDOWS)
# dependencies libraries
target_link_libraries ("pokefight-server" ${SDL2MAIN_LIBRARY} ${SDL2_LIBRARY} ${SDL2_NET_LIBRARY})