Skip to content

Instantly share code, notes, and snippets.

@nikhilRP
Created August 26, 2014 18:14
Show Gist options
  • Save nikhilRP/d2a21e3258f37b750b2b to your computer and use it in GitHub Desktop.
Save nikhilRP/d2a21e3258f37b750b2b to your computer and use it in GitHub Desktop.
cmake file for including nvbio as library
include(ExternalProject)
ExternalProject_Add(
nvbio
GIT_REPOSITORY https://github.com/NVlabs/nvbio.git
GIT_TAG v0.9.7
BUILD_COMMAND make nvbio
INSTALL_COMMAND ""
)
# I'm successfull in generating Static library here (libnvbio.a)
add_subdirectory(src)
# CMakeLists.txt in subdirectory src
set(idr_srcs
idr.cu
processPeaks.cpp
)
ExternalProject_Get_Property(nvbio binary_dir)
include_directories(${binary_dir}/nvbio)
cuda_add_executable(idr ${idr_srcs})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment