-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (17 loc) · 1.38 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
cmake_minimum_required(VERSION 3.10)
project(XSFML)
set(CMAKE_CXX_STANDARD 11)
include_directories(BEFORE SYSTEM include)
file(GLOB FILES include/* src/*)
add_library(XSFML ${FILES} include/XSFML/Exception.h include/XSFML/TextureManager.h src/TextureManager.cpp)
add_executable(foo test/foo.cpp) # dummy exe for testing
target_link_libraries(foo sfml-graphics sfml-window sfml-system sfml-audio sfml-network)
add_executable(test_texture_manager test/texture_manager/test_texture_manager.cpp ${FILES})
target_link_libraries(test_texture_manager sfml-graphics sfml-window sfml-system sfml-audio sfml-network)
add_executable(test_util test/util/test_open_file.cpp include/XSFML/Util.h src/Util.cpp)
target_link_libraries(test_texture_manager sfml-graphics sfml-window sfml-system sfml-audio sfml-network)
add_executable(test_extract_resource_name test/util/test_extract_resource_name.cpp src/Util.cpp)
add_executable(test_sound_manager test/sound_manager/test_sound_manager.cpp include/XSFML/SoundManager.h src/SoundManager.cpp src/Util.cpp)
target_link_libraries(test_sound_manager sfml-graphics sfml-window sfml-system sfml-audio sfml-network)
add_executable(test_simple_input_manager test/input_manager/test_simple_input_manager.cpp src/Util.cpp src/SimpleInputManager.cpp)
target_link_libraries(test_simple_input_manager sfml-graphics sfml-window sfml-system sfml-audio sfml-network)