Skip to content

Commit

Permalink
Merge pull request #202 from BioDataAnalysis/use_cmake_options
Browse files Browse the repository at this point in the history
Use cmake option() for setting external parameters
  • Loading branch information
zeyiwen committed Feb 8, 2020
2 parents 7d83817 + 49c506c commit b747745
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ if(MSVC)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin)
endif()

set(USE_CUDA ON CACHE BOOL "Compile with CUDA")
set(USE_EIGEN OFF CACHE BOOL "Compile with Eigen")
set(BUILD_TESTS OFF CACHE BOOL "Build Tests")
set(USE_DOUBLE OFF CACHE BOOL "Use double as kernel_type")
option(BUILD_SHARED_LIBS "Build as a shared library" ON)
option(USE_CUDA "Compile with CUDA" ON)
option(USE_EIGEN "Compile with Eigen" OFF)
option(BUILD_TESTS "Build Tests" OFF)
option(USE_DOUBLE "Use double as kernel_type" OFF)

if(USE_DOUBLE)
message("Use double as kernel_type")
Expand Down

0 comments on commit b747745

Please sign in to comment.