-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
39 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,17 @@ | ||
cmake_minimum_required(VERSION 3.16) | ||
project(nvme) | ||
project( | ||
ColossalAI-NVME | ||
VERSION 0.1 | ||
DESCRIPTION "ColossalAI NVME" | ||
LANGUAGES CXX | ||
) | ||
|
||
set(CMAKE_CXX_STANDARD 14) | ||
set(CMAKE_CXX_STANDARD_REQUIRED TRUE) | ||
|
||
add_subdirectory(3rd) | ||
include_directories(csrc/include) | ||
include_directories(tests) | ||
add_subdirectory(csrc) | ||
|
||
add_library(colo_asyncio | ||
OBJECT | ||
csrc/uring.cpp | ||
csrc/aio.cpp) | ||
target_link_libraries(colo_asyncio PUBLIC uring aio) | ||
|
||
|
||
|
||
add_executable(test_asyncio | ||
tests/test_asyncio.cpp) | ||
target_link_libraries(test_asyncio colo_asyncio) | ||
|
||
add_executable(test_space_mgr tests/test_space_mgr.cpp | ||
csrc/space_mgr.cpp) | ||
#if((CMAKE_PROJECT_NAME STREQUAL PROJECT_NAME OR MODERN_CMAKE_BUILD_TESTING) AND BUILD_TESTING) | ||
add_subdirectory(tests) | ||
#endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
add_library(colo_asyncio | ||
OBJECT | ||
aio.cpp | ||
uring.cpp) | ||
target_link_libraries(colo_asyncio | ||
PUBLIC uring | ||
PUBLIC aio) | ||
target_include_directories(colo_asyncio PUBLIC ../include) | ||
|
||
|
||
add_library(space_mgr | ||
OBJECT | ||
space_mgr.cpp) | ||
target_include_directories(space_mgr PUBLIC ../include) |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
add_executable(test_asyncio | ||
test_asyncio.cpp) | ||
target_link_libraries(test_asyncio colo_asyncio) | ||
target_include_directories(test_asyncio INTERFACE .) | ||
add_test(NAME test_asyncio COMMAND test_asyncio) | ||
|
||
|
||
add_executable(test_space_mgr | ||
test_space_mgr.cpp) | ||
target_link_libraries(test_space_mgr space_mgr) | ||
target_include_directories(test_space_mgr INTERFACE .) | ||
add_test(NAME test_space_mgr COMMAND test_space_mgr) |