JCusolverJNI.CMakeLists.txt Maven / Gradle / Ivy
cmake_minimum_required(VERSION 3.1)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../jcuda-common/JCudaCommon_CMake_flags.txt)
project(JCusolver)
include(${CMAKE_CURRENT_SOURCE_DIR}/../../jcuda-common/JCudaCommon_CMake.txt)
if (NOT TARGET JCudaCommonJNI)
add_subdirectory(
${CMAKE_CURRENT_SOURCE_DIR}/../../jcuda-common/JCudaCommonJNI
${CMAKE_CURRENT_BINARY_DIR}/bin)
endif()
set (BUILD_SHARED_LIBS ON)
include_directories (
src/
${JCudaCommonJNI_INCLUDE_DIRS}
${JNI_INCLUDE_DIRS}
${CUDA_INCLUDE_DIRS}
)
cuda_add_library(${PROJECT_NAME}
src/JCusolver.cpp
src/JCusolverDn.cpp
src/JCusolverRf.cpp
src/JCusolverSp.cpp
)
cuda_add_cusolver_to_target(${PROJECT_NAME})
target_link_libraries(${PROJECT_NAME}
JCudaCommonJNI
)
set_target_properties(${PROJECT_NAME}
PROPERTIES OUTPUT_NAME ${PROJECT_NAME}-${JCUDA_VERSION}-${JCUDA_OS}-${JCUDA_ARCH})
© 2015 - 2024 Weber Informatics LLC | Privacy Policy