Skip to content

Commit 850df7a

Browse files
committed
[CMAKE][CORE] Move CRCDiff tool to Core
1 parent 378ae55 commit 850df7a

30 files changed

+26
-993
lines changed

Core/Tools/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,6 @@ endif()
88
# Build less useful tool/test binaries.
99
if(RTS_BUILD_CORE_EXTRAS)
1010
add_subdirectory(Compress)
11+
add_subdirectory(CRCDiff)
1112
add_subdirectory(WW3D)
1213
endif()

Core/Tools/CRCDiff/CMakeLists.txt

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
set(CRCDIFF_SRC
2+
"CRCDiff.cpp"
3+
"debug.cpp"
4+
"debug.h"
5+
"expander.cpp"
6+
"expander.h"
7+
"KVPair.cpp"
8+
"KVPair.h"
9+
"misc.h"
10+
)
11+
12+
add_executable(core_crcdiff WIN32)
13+
set_target_properties(core_crcdiff PROPERTIES OUTPUT_NAME crcdiff)
14+
15+
target_sources(core_crcdiff PRIVATE ${CRCDIFF_SRC})
16+
17+
target_link_libraries(core_crcdiff PRIVATE
18+
core_config
19+
core_utility
20+
stlport
21+
)
22+
23+
if(WIN32 OR "${CMAKE_SYSTEM}" MATCHES "Windows")
24+
target_link_options(core_crcdiff PRIVATE /subsystem:console)
25+
endif()
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

Generals/Code/Tools/CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ if(RTS_BUILD_GENERALS_EXTRAS)
1515
add_subdirectory(Autorun)
1616
add_subdirectory(Babylon)
1717
add_subdirectory(buildVersionUpdate)
18-
add_subdirectory(CRCDiff)
1918
add_subdirectory(Launcher)
2019
add_subdirectory(mangler)
2120
add_subdirectory(matchbot)

Generals/Code/Tools/CRCDiff/CMakeLists.txt

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)