Skip to content

Commit

Permalink
Merge pull request #314 from xantares/patch-3
Browse files Browse the repository at this point in the history
CMake: use options() to disable examples and utils
  • Loading branch information
neomilium committed Sep 1, 2015
2 parents 53edc32 + b7f620f commit 48c271e
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,10 @@ IF(LIBNFC_CONFFILES_MODE)
ADD_DEFINITIONS(-DCONFFILES)
ENDIF(LIBNFC_CONFFILES_MODE)

option (BUILD_EXAMPLES "build examples ON/OFF" ON)
option (BUILD_UTILS "build utils ON/OFF" ON)


# Doxygen
SET(builddir "${CMAKE_BINARY_DIR}")
SET(top_srcdir "${CMAKE_SOURCE_DIR}")
Expand Down Expand Up @@ -151,8 +155,14 @@ ENDIF(WIN32)

ADD_SUBDIRECTORY(libnfc)
ADD_SUBDIRECTORY(include)
ADD_SUBDIRECTORY(utils)
ADD_SUBDIRECTORY(examples)

if (BUILD_UTILS)
add_subdirectory (utils)
endif ()

if (BUILD_EXAMPLES)
add_subdirectory (examples)
endif ()

if (NOT MSVC)
# config script install path
Expand Down

0 comments on commit 48c271e

Please sign in to comment.