All Downloads are FREE. Search and download functionalities are using the official Maven repository.

JCudaCommonJNI.CMakeLists.txt Maven / Gradle / Ivy

There is a newer version: 12.0.0
Show newest version
cmake_minimum_required(VERSION 3.1)


project(JCudaCommonJNI)

include(${CMAKE_CURRENT_SOURCE_DIR}/../../jcuda-common/JCudaCommon_CMake.txt)

set (BUILD_SHARED_LIBS OFF)

include_directories (
    src/
    ${JNI_INCLUDE_DIRS}
)
  
add_library(${PROJECT_NAME}
    src/JNIUtils.cpp
    src/Logger.cpp
    src/PointerUtils.cpp
    src/CallbackUtils.cpp
)

if (UNIX AND NOT WIN32)
    set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
    set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
endif(UNIX AND NOT WIN32)




© 2015 - 2024 Weber Informatics LLC | Privacy Policy