File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
cmake_minimum_required (VERSION 3.5)
2
2
project (LibreCuda CXX)
3
3
4
+ option (BUILD_LIBRECUDA_DRVIER_API_STATIC_LIB "Build the LibreCUDA driverapi as a static library" ON )
4
5
include (CheckCXXCompilerFlag)
5
6
CHECK_CXX_COMPILER_FLAG("-std=c++17" COMPILER_SUPPORTS_CXX17)
6
7
if (COMPILER_SUPPORTS_CXX17)
Original file line number Diff line number Diff line change 7
7
internal /memcopy.h
8
8
internal /memcopy_kernel.h
9
9
)
10
+ if (BUILD_LIBRECUDA_DRVIER_API_STATIC_LIB)
11
+ add_library (driverapi STATIC ${DRIVERAPI_SOURCES} )
12
+ else ()
13
+ add_library (driverapi SHARED ${DRIVERAPI_SOURCES} )
14
+ endif ()
10
15
11
- add_library (driverapi SHARED ${DRIVERAPI_SOURCES} )
12
16
target_include_directories (driverapi PRIVATE "internal/" )
13
17
target_include_directories (driverapi PUBLIC "include/" )
14
18
target_link_libraries (driverapi PRIVATE elfio)
You can’t perform that action at this time.
0 commit comments