Skip to content

Commit 4c10476

Browse files
committed
fix: 修复了CMake构建问题
1 parent 5eccc28 commit 4c10476

File tree

96 files changed

+113
-116
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

96 files changed

+113
-116
lines changed

3rd-party/nlohmann/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ HEAD_FILES = \
2424
json.hpp \
2525
json_fwd.hpp \
2626

27-
include $(TOP_DIR)/tools/lib_header_only_common.mk
27+
include $(TOP_DIR)/mk/lib_header_only_common.mk

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ endif()
160160

161161
if(TBOX_ENABLE_TRACE)
162162
message(STATUS "trace module enabled")
163-
add_subdirectory(modules/trace/lib)
163+
list(APPEND TBOX_COMPONENTS trace)
164164
endif()
165165

166166
if(TBOX_ENABLE_MAIN)

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export TOP_DIR:=$(PWD)
2323
include build_env.mk
2424
include version.mk
2525

26-
.PHONY: all 3rd-party modules examples test clean distclean print
26+
.PHONY: all 3rd-party modules tools examples test clean distclean print
2727

2828
CCFLAGS := -Wall
2929

@@ -59,7 +59,7 @@ CXXFLAGS := $(CCFLAGS) $(CXXFLAGS)
5959
CFLAGS := $(CCFLAGS) $(CFLAGS)
6060
APPS_DIR := $(PWD)
6161

62-
all: 3rd-party modules test examples
62+
all: 3rd-party modules test tools examples
6363

6464
print:
6565
@echo "CXXFLAGS = $(CXXFLAGS)"
@@ -71,7 +71,7 @@ modules 3rd-party:
7171
test: modules
7272
$(MAKE) -C modules test
7373

74-
examples: modules
74+
tools examples: modules
7575
$(MAKE) -C $@
7676

7777
clean:

examples/alarm/cron_alarm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ LDFLAGS += \
3030
-ltbox_base \
3131
-ldl
3232

33-
include ${TOP_DIR}/tools/exe_common.mk
33+
include $(TOP_DIR)/mk/exe_common.mk

examples/alarm/oneshot_alarm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ LDFLAGS += \
3030
-ltbox_base \
3131
-ldl
3232

33-
include ${TOP_DIR}/tools/exe_common.mk
33+
include $(TOP_DIR)/mk/exe_common.mk

examples/alarm/weekly_alarm/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@ LDFLAGS += \
3030
-ltbox_base \
3131
-ldl
3232

33-
include ${TOP_DIR}/tools/exe_common.mk
33+
include $(TOP_DIR)/mk/exe_common.mk

examples/base/assert/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ CPP_SRC_FILES := main.cpp
2626
CXXFLAGS := -DMODULE_ID='"$(EXE_NAME)"' $(CXXFLAGS)
2727
LDFLAGS += -ltbox_base -ldl
2828

29-
include ${TOP_DIR}/tools/exe_common.mk
29+
include $(TOP_DIR)/mk/exe_common.mk

examples/base/object_pool/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,4 +26,4 @@ CPP_SRC_FILES := main.cpp
2626
CXXFLAGS := -DMODULE_ID='"$(EXE_NAME)"' $(CXXFLAGS)
2727
LDFLAGS += -ltbox_base -ldl
2828

29-
include ${TOP_DIR}/tools/exe_common.mk
29+
include $(TOP_DIR)/mk/exe_common.mk

examples/base/print_log/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ CFLAGS += -DMODULE_ID='"demo"'
2929

3030
LDFLAGS += -ltbox_base -ldl
3131

32-
include ${TOP_DIR}/tools/exe_common.mk
32+
include $(TOP_DIR)/mk/exe_common.mk

examples/dbus/00-loop/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ LDFLAGS += \
3232
-ltbox_base \
3333
-ldl
3434

35-
include ${TOP_DIR}/tools/exe_common.mk
35+
include $(TOP_DIR)/mk/exe_common.mk

0 commit comments

Comments
 (0)