Skip to content

Commit 8210b76

Browse files
authored
[CMAKE][CORE] Move CRCDiff tool to Core (#684)
1 parent 9b9258e commit 8210b76

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.

0 commit comments

Comments
 (0)