Permalink
Browse files

Allow easy changing of maxkmerlength from cmake command line

For example, in brownie/build:
cmake -DMAXKMERLENGTH=75 ..
  • Loading branch information...
gmiclotte
gmiclotte committed Apr 20, 2016
1 parent 74f0752 commit 10e5bfc1ef7a1d96d58965b09d8e2920fed58d4a
Showing with 5 additions and 1 deletion.
  1. +5 −1 CMakeLists.txt
View
@@ -18,7 +18,11 @@ endif(NOT CMAKE_BUILD_TYPE)
set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
# set some definitions
add_definitions("-DMAXKMERLENGTH=31")
if(MAXKMERLENGTH)
add_definitions("-DMAXKMERLENGTH=${MAXKMERLENGTH}")
else(MAXKMERLENGTH)
add_definitions("-DMAXKMERLENGTH=31")
endif(MAXKMERLENGTH)
add_definitions("-DCATEGORIES=2")
add_definitions("-DBROWNIE_MAJOR_VERSION=${${PROJECT_NAME}_MAJOR_VERSION}")
add_definitions("-DBROWNIE_MINOR_VERSION=${${PROJECT_NAME}_MINOR_VERSION}")

0 comments on commit 10e5bfc

Please sign in to comment.