Skip to content

Commit 79865c4

Browse files
committed
fix cmake
1 parent f12d342 commit 79865c4

File tree

3 files changed

+7
-8
lines changed

3 files changed

+7
-8
lines changed

CMakeLists.txt

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,16 @@ set(ASYNCIO_INC
2525
include/asyncio/sleep.h
2626
include/asyncio/schedule_task.h
2727
include/asyncio/concept/awaitable.h
28-
include/asyncio/gather.h)
28+
include/asyncio/gather.h
29+
include/asyncio/result.h
30+
include/asyncio/callstack.h)
2931

3032
include_directories(${CMAKE_SOURCE_DIR}/include)
3133

3234
add_library(asyncio STATIC
3335
${ASYNC_INC}
34-
src/event_loop.cpp include/asyncio/result.h include/asyncio/callstack.h)
36+
src/event_loop.cpp)
37+
target_link_libraries(asyncio PUBLIC fmt::fmt)
3538

3639
add_subdirectory(test)
3740
add_subdirectory(third_party)

test/st/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
add_executable(hello_world hello_world.cpp)
2-
target_link_libraries(hello_world asyncio fmt::fmt)
2+
target_link_libraries(hello_world asyncio)

test/ut/CMakeLists.txt

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
add_executable(asyncio_ut selector_test.cpp task_test.cpp result_test.cpp counted.h)
2-
target_link_libraries(asyncio_ut Catch2WithMain asyncio fmt::fmt)
3-
4-
#include(CTest)
5-
#include(Catch)
6-
#catch_discover_tests(asyncio_ut)
2+
target_link_libraries(asyncio_ut Catch2WithMain asyncio)

0 commit comments

Comments
 (0)