CMakeLists.txt 536 Bytes
Newer Older
Chao Liu's avatar
Chao Liu committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
include_directories(BEFORE include)

set(SOURCE 
    tensor.cpp;
)

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

# boost.python
target_link_libraries(convolution boost_python3)

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

install(TARGETS convolution LIBRARY DESTINATION lib)