Skip to content

Commit bed615c

Browse files
committed
[Code] Add dummy lib implementation for testing
1 parent 4a47151 commit bed615c

File tree

8 files changed

+745
-0
lines changed

8 files changed

+745
-0
lines changed

CMakeLists.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,27 @@ set_target_properties(cubool PROPERTIES CUDA_STANDARD 14)
9292
set_target_properties(cubool PROPERTIES CUDA_STANDARD_REQUIRED ON)
9393
set_target_properties(cubool PROPERTIES CUDA_SEPARABLE_COMPILATION ON)
9494

95+
96+
set(CUBOOL_DUMMY_SOURCES
97+
include/cubool/cubool.h
98+
src/cubool-dummy/cubool.cpp
99+
src/cubool-dummy/version.hpp
100+
src/cubool-dummy/instance.hpp
101+
src/cubool-dummy/matrix.hpp
102+
)
103+
104+
# Create dummy library instance for testing purposes
105+
add_library(cubool_dummy SHARED ${CUBOOL_DUMMY_SOURCES})
106+
107+
target_include_directories(cubool_dummy PUBLIC ${CMAKE_CURRENT_LIST_DIR}/include)
108+
target_include_directories(cubool_dummy PRIVATE ${CMAKE_CURRENT_LIST_DIR}/src)
109+
target_include_directories(cubool_dummy PRIVATE ${CMAKE_BINARY_DIR}/src)
110+
111+
target_compile_features(cubool_dummy PUBLIC cxx_std_11)
112+
113+
set_target_properties(cubool_dummy PROPERTIES CXX_STANDARD 11)
114+
set_target_properties(cubool_dummy PROPERTIES CXX_STANDARD_REQUIRED ON)
115+
95116
# If tests enabled, add tests sources to the build
96117
if (CUBOOL_BUILD_TESTS)
97118
add_subdirectory(tests)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ the programming language *COBOL*.
3232
- [ ] Wrapper for Python API
3333
- [ ] User guide
3434
- [ ] Unit Tests collection
35+
- [X] Dummy library implementation for testing
3536
- [ ] Publish built artifacts and shared lib
3637

3738
## Requirements

0 commit comments

Comments
 (0)