forked from planqi/slashdiablo-maphack
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added CMake build files and instructions for CMake-based build
- Loading branch information
1 parent
234945f
commit 6ddb39c
Showing
3 changed files
with
62 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
project(BH) | ||
|
||
set(SOURCE_FILES "AsyncDrawBuffer.cpp" | ||
"BH.cpp" | ||
"BitReader.cpp" | ||
"Common.cpp" | ||
"Config.cpp" | ||
"D2Handlers.cpp" | ||
"D2Helpers.cpp" | ||
"D2Intercepts.cpp" | ||
"D2Stubs.cpp" | ||
"D2Version.cpp" | ||
"DllMain.cpp" | ||
"JSONObject.cpp" | ||
"MPQInit.cpp" | ||
"MPQReader.cpp" | ||
"Mustache.cpp" | ||
"Patch.cpp" | ||
"TableReader.cpp" | ||
"Task.cpp") | ||
|
||
set(MODULE_SOURCES "Modules/Module.cpp" | ||
"Modules/ModuleManager.cpp" | ||
"Modules/AutoTele/AutoTele.cpp" | ||
"Modules/Bnet/Bnet.cpp" | ||
"Modules/ChatColor/ChatColor.cpp" | ||
"Modules/Gamefilter/Gamefilter.cpp" | ||
"Modules/Item/Item.cpp" | ||
"Modules/Item/ItemDisplay.cpp" | ||
"Modules/ItemMover/ItemMover.cpp" | ||
"Modules/Maphack/Maphack.cpp" | ||
"Modules/Party/Party.cpp" | ||
"Modules/ScreenInfo/ScreenInfo.cpp" | ||
"Modules/StashExport/StashExport.cpp") | ||
|
||
set(DRAWING_SOURCES "Drawing/Hook.cpp" | ||
"Drawing/Advanced/Checkhook/Checkhook.cpp" | ||
"Drawing/Advanced/Colorhook/Colorhook.cpp" | ||
"Drawing/Advanced/Combohook/Combohook.cpp" | ||
"Drawing/Advanced/Inputhook/Inputhook.cpp" | ||
"Drawing/Advanced/Keyhook/Keyhook.cpp" | ||
"Drawing/Basic/Boxhook/Boxhook.cpp" | ||
"Drawing/Basic/Crosshook/Crosshook.cpp" | ||
"Drawing/Basic/Framehook/Framehook.cpp" | ||
"Drawing/Basic/Linehook/Linehook.cpp" | ||
"Drawing/Basic/Texthook/Texthook.cpp" | ||
"Drawing/Stats/StatsDisplay.cpp" | ||
"Drawing/UI/UI.cpp" | ||
"Drawing/UI/UITab.cpp") | ||
|
||
set(SOURCE_FILES ${SOURCE_FILES} ${MODULE_SOURCES} ${DRAWING_SOURCES}) | ||
add_library(BH ${SOURCE_FILES}) | ||
target_link_libraries(BH ${STORM_LIBRARY} Shlwapi) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
cmake_minimum_required(VERSION 3.7) | ||
find_library(STORM_LIBRARY NAMES StormLib HINTS "ThirdParty") | ||
add_subdirectory("BH") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters