Skip to content
This repository has been archived by the owner on Jan 6, 2024. It is now read-only.

Commit

Permalink
Closes #1 : Make examples optional
Browse files Browse the repository at this point in the history
  • Loading branch information
nunofachada committed Apr 29, 2014
1 parent 4c61d63 commit c9ad3a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
# Build examples?
option(BUILD_EXAMPLES "Build and install examples?" ON)

# Library, examples and utilities are included in the ALL target
add_subdirectory(lib)
add_subdirectory(examples)
add_subdirectory(utils)
if (BUILD_EXAMPLES)
add_subdirectory(examples)
endif()

# Tests are not included in the ALL target
add_subdirectory(tests EXCLUDE_FROM_ALL)
Expand Down

0 comments on commit c9ad3a2

Please sign in to comment.