-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathCMakeLists.txt
More file actions
65 lines (58 loc) · 2.54 KB
/
CMakeLists.txt
File metadata and controls
65 lines (58 loc) · 2.54 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
cmake_minimum_required(VERSION 3.25) # Specifies the required CMake version.
project(Openbound) # Defines the project name.
include(${CMAKE_CURRENT_SOURCE_DIR}/conanbuildinfo.cmake) # Includes the contents of the conanbuildinfo.cmake file.
conan_basic_setup() # Prepares the CMakeList.txt for Conan.
set(BUILD_SHARED_LIBS OFF)
set(SFML_USE_STATIC_STD_LIBS ON)
add_subdirectory("lib/SFML")
# $source_files is a space-delimited list of filenames.
add_executable(Openbound
"openbound/src/Action.cpp"
"openbound/src/ActionQueue.cpp"
"openbound/src/Animation.cpp"
"openbound/src/AssetAudio.cpp"
"openbound/src/AssetFont.cpp"
"openbound/src/AssetGraphic.cpp"
"openbound/src/ASsetManager.cpp"
"openbound/src/AssetPath.cpp"
"openbound/src/BatchHandler.cpp"
"openbound/src/Character.cpp"
"openbound/src/Chooser.cpp"
"openbound/src/CommandHandler.cpp"
"openbound/src/Common.cpp"
"openbound/src/Dialoger.cpp"
"openbound/src/Event.cpp"
"openbound/src/EventFactory.cpp"
"openbound/src/EventGameState.cpp"
"openbound/src/EventInBox.cpp"
"openbound/src/EventMovie.cpp"
"openbound/src/EventNoActions.cpp"
"openbound/src/EventNudge.cpp"
"openbound/src/EventPlayed.cpp"
"openbound/src/EventSpriteProperty.cpp"
"openbound/src/EventTime.cpp"
"openbound/src/EventWithinRange.cpp"
"openbound/src/Fighter.cpp"
"openbound/src/FontEngine.cpp"
"openbound/src/Input.cpp"
"openbound/src/Logger.cpp"
"openbound/src/main.cpp"
"openbound/src/Music.cpp"
"openbound/src/Parser.cpp"
"openbound/src/Room.cpp"
"openbound/src/Sburb.cpp"
"openbound/src/Serializer.cpp"
"openbound/src/Sound.cpp"
"openbound/src/Sprite.cpp"
"openbound/src/SpriteButton.cpp"
"openbound/src/Trigger.cpp"
"openbound/src/Window.cpp"
"openbound/openbound.rc"
) # Specifies the executable to build.
set_property(TARGET Openbound PROPERTY MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
add_compile_definitions(_UNICODE UNICODE)
target_compile_features(Openbound PUBLIC cxx_std_17)
target_include_directories(Openbound PUBLIC "openbound/includes/" "lib/")
add_custom_command(TARGET Openbound POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy ${CONAN_OPENAL_ROOT}/bin/OpenAL32.dll ${CMAKE_RUNTIME_OUTPUT_DIRECTORY})
target_include_directories(Openbound PUBLIC "lib/SFML/include")
target_link_libraries(Openbound ${CONAN_LIBS} "sfml-graphics" "sfml-system" "sfml-window" "sfml-audio" "gdi32.lib" "opengl32.lib" "winmm.lib") # Specifies what libraries to link, using Conan.