diff --git a/CMakeLists.txt b/CMakeLists.txt index e7c0524..778e434 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -12,21 +12,109 @@ # Minimum required CMake version cmake_minimum_required(VERSION 3.0) +# Specify C++ standard +set(CMAKE_CXX_STANDARD 17) +set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /O2 /MT /D NDEBUG") + # Project name project(DragonBurn) +#Target dir +set_target_properties(DragonBurn PROPERTIES + OUTPUT_NAME "DragonBurn" + RUNTIME_OUTPUT_DIRECTORY "built") + # Add an executable from source files add_executable(DragonBurn DragonBurn/main.cpp - #DragonBurn/other_file.cpp - # Add more source files here + DragonBurn/Config/ConfigMenu.cpp + DragonBurn/Config/ConfigMenu.hpp + DragonBurn/Config/ConfigSaver.cpp + DragonBurn/Config/ConfigSaver.hpp + DragonBurn/Config/MenuConfig.hpp + DragonBurn/DragonBurn/Core/Cheats.cpp + DragonBurn/Core/Cheats.h + DragonBurn/Core/Globals.hpp + DragonBurn/Core/GlobalVars.cpp + DragonBurn/Core/GlobalVars.h + DragonBurn/Core/GUI.h + DragonBurn/Core/Init.h + DragonBurn/Core/ProcessManager.hpp + DragonBurn/Core/Render.hpp + DragonBurn/Features/Aimbot.cpp + DragonBurn/Features/Aimbot.h + DragonBurn/Features/BombTimer.h + DragonBurn/Features/ESP.h + DragonBurn/Features/Misc.cpp + DragonBurn/Features/Misc.h + DragonBurn/Features/Radar.cpp + DragonBurn/Features/Radar.h + DragonBurn/DragonBurn/Features/RCS.h + DragonBurn/Features/SpectatorList.h + DragonBurn/Features/TriggerBot.cpp + DragonBurn/Features/TriggerBot.h + DragonBurn/Game/Bone.cpp + Game/Bone.h + DragonBurn/Game/Entity.cpp + DragonBurn/Game/Entity.h + DragonBurn/Game/Game.cpp + DragonBurn/Game/Game.h + DragonBurn/Game/View.hpp + DragonBurn/Helpers/Format.h + DragonBurn/Helpers/GetWeaponIcon.h + DragonBurn/Helpers/Mouse.cpp + DragonBurn/Helpers/Mouse.h + DragonBurn/Helpers/Random.h + DragonBurn/Libs/json.hpp + DragonBurn/Offsets/Client.hpp + DragonBurn/Offsets/Offsets.h + DragonBurn/Offsets/Offsets.hpp + DragonBurn/OS-ImGui/OS-ImGui.cpp + DragonBurn/OS-ImGui/OS-ImGui.h + DragonBurn/OS-ImGui/OS-ImGui_Base.cpp + DragonBurn/OS-ImGui/OS-ImGui_Base.h + DragonBurn/OS-ImGui/OS-ImGui_Exception.hpp + DragonBurn/OS-ImGui/OS-ImGui_External.cpp + DragonBurn/OS-ImGui/OS-ImGui_External.h + DragonBurn/OS-ImGui/OS-ImGui_Struct.h + DragonBurn/OS-ImGui/imgui/imconfig.h + DragonBurn/OS-ImGui/imgui/imgui.cpp + DragonBurn/OS-ImGui/imgui/imgui.h + DragonBurn/OS-ImGui/imgui/imgui_demo.cpp + DragonBurn/OS-ImGui/imgui/imgui_draw.cpp + DragonBurn/OS-ImGui/imgui/imgui_impl_dx11.cpp + DragonBurn/OS-ImGui/imgui/imgui_impl_dx11.h + DragonBurn/OS-ImGui/imgui/imgui_impl_win32.cpp + DragonBurn/OS-ImGui/imgui/imgui_impl_win32.h + DragonBurn/OS-ImGui/imgui/imgui_internal.h + DragonBurn/OS-ImGui/imgui/imgui_tables.cpp + DragonBurn/OS-ImGui/imgui/imgui_widgets.cpp + DragonBurn/OS-ImGui/imgui/imstb_rectpack.h + DragonBurn/OS-ImGui/imgui/imstb_textedit.h + DragonBurn/OS-ImGui/imgui/imstb_truetype.h + DragonBurn/OS-ImGui/stb/stb_image.h + DragonBurn/Resources/font.h + DragonBurn/Resources/Images.h + DragonBurn/Resources/Language.h + DragonBurn/Resources/Sounds.h + DragonBurn/Resources/WeaponIcon.h ) -# Specify C++ standard (optional) -set(CMAKE_CXX_STANDARD 17) +# Additional configuration +target_include_directories(DragonBurn + PRIVATE + DragonBurn/Libs + DragonBurn/OS-ImGui) + +target_sources(DragonBurn + PRIVATE + DragonBurn/AssemblyInfo.rc) + +add_custom_command( + OUTPUT AssemblyInfo.res + COMMAND windres DragonBurn/AssemblyInfo.rc + OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}) +link_directories(${CMAKE_CURRENT_BINARY_DIR}) -# Additional configuration (e.g., include directories, libraries, etc.) -# ... -# Install rules (optional) -install(TARGETS DragonBurn DESTINATION bin) +target_link_libraries(DragonBurn AssemblyInfo.res)