Skip to content

Commit d1b62d5

Browse files
committed
Added option to build testing
Signed-off-by: Alecto Irene Perez <[email protected]>
1 parent 759dd00 commit d1b62d5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

CMakeLists.txt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,14 @@ install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/tuplet
7070
DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}
7171
)
7272

73-
7473
include(helper)
75-
if(PROJECT_IS_TOP_LEVEL)
74+
75+
option(
76+
BUILD_TESTING
77+
"Build testing for tuplet"
78+
ON)
79+
80+
if(PROJECT_IS_TOP_LEVEL AND BUILD_TESTING)
7681
include(CTest)
7782

7883
set(THREADS_PREFER_PTHREAD_FLAG ON)

0 commit comments

Comments
 (0)