Skip to content

Commit eae8fd7

Browse files
committed
add option to not build Tools
1 parent 28fd550 commit eae8fd7

File tree

4 files changed

+14
-6
lines changed

4 files changed

+14
-6
lines changed

.idea/.name

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

CMakeLists.txt

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,15 @@ cmake_minimum_required(VERSION 3.28)
22

33
project(ArcpdsMockDummy)
44

5-
# add project for log
6-
add_subdirectory(log)
5+
option(BUILD_TOOLS "Build the Collector and Mock" ON)
76

87
# add project for xevtc (export xevtc.h via vcpkg)
98
add_subdirectory(xevtc)
109

11-
# then link those to the arcdps_mock project
10+
if (BUILD_TOOLS)
11+
# add project for log
12+
add_subdirectory(log)
1213

13-
add_subdirectory(arcdps_mock)
14-
add_subdirectory(arcdps_collector)
14+
add_subdirectory(arcdps_mock)
15+
add_subdirectory(arcdps_collector)
16+
endif ()

log/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ project(ArcdpsMockLog CXX)
33
add_library(${PROJECT_NAME} INTERFACE)
44
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
55

6+
set_property(TARGET ${PROJECT_NAME} PROPERTY
7+
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
8+
69
target_compile_definitions(${PROJECT_NAME} INTERFACE NOMINMAX)
710

811
#target_include_directories(${PROJECT_NAME} INTERFACE log)

xevtc/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ project(ArcdpsMock CXX)
33
add_library(${PROJECT_NAME} INTERFACE)
44
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
55

6+
set_property(TARGET ${PROJECT_NAME} PROPERTY
7+
MSVC_RUNTIME_LIBRARY "MultiThreaded$<$<CONFIG:Debug>:Debug>")
8+
69
target_compile_definitions(${PROJECT_NAME} INTERFACE NOMINMAX)
710

811
#target_include_directories(${PROJECT_NAME} INTERFACE xevtc)

0 commit comments

Comments
 (0)