CMakeLists.txt 506 Bytes
Newer Older
Chao Liu's avatar
Chao Liu committed
1
2
3
4
5
6
7
8
9
10
11
set(SOURCE 
    tensor.cpp;
)

add_library(convolution SHARED ${SOURCE})
set_target_properties(convolution PROPERTIES PREFIX "")

# boost.python
target_link_libraries(convolution boost_python3)

# cuda
Chao Liu's avatar
Chao Liu committed
12
target_link_libraries(convolution nvToolsExt cudart)
Chao Liu's avatar
Chao Liu committed
13
target_compile_features(convolution PUBLIC)
Chao Liu's avatar
Chao Liu committed
14
15
16
17
set_target_properties(convolution PROPERTIES POSITION_INDEPENDENT_CODE ON)
set_target_properties(convolution PROPERTIES CUDA_SEPARABLE_COMPILATION OFF)

install(TARGETS convolution LIBRARY DESTINATION lib)