Add ENABLE_EXAMPLES option, off by default
Signed-off-by: Justin Brewer <jzb0012@auburn.edu>
This commit is contained in:
parent
bbad21f5ca
commit
0c57a083c7
@ -2,6 +2,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 3.0.0)
|
|||||||
INCLUDE(GNUInstallDirs)
|
INCLUDE(GNUInstallDirs)
|
||||||
PROJECT(redisearch)
|
PROJECT(redisearch)
|
||||||
|
|
||||||
|
SET(ENABLE_EXAMPLES OFF CACHE BOOL "Enable building hiredis examples")
|
||||||
|
|
||||||
# Get the version numbers
|
# Get the version numbers
|
||||||
MACRO(getVersionBit name)
|
MACRO(getVersionBit name)
|
||||||
|
|
||||||
@ -46,5 +48,6 @@ ADD_EXECUTABLE(hiredis-test
|
|||||||
TARGET_LINK_LIBRARIES(hiredis-test hiredis)
|
TARGET_LINK_LIBRARIES(hiredis-test hiredis)
|
||||||
|
|
||||||
# Add examples
|
# Add examples
|
||||||
ADD_SUBDIRECTORY(examples)
|
IF(ENABLE_EXAMPLES)
|
||||||
|
ADD_SUBDIRECTORY(examples)
|
||||||
|
ENDIF(ENABLE_EXAMPLES)
|
||||||
|
Loading…
Reference in New Issue
Block a user