Skip to content

Commit 79b7be9

Browse files
committed
ENH: Add BUILD_EXTENSIONS, BUILD_TESTING, BUILD_EXAMPLES options.
1 parent 2fa9c2c commit 79b7be9

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

CMakeLists.txt

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,25 @@ set(PYTHONQT_SUFFIX Qt${QT_VERSION_MAJOR}.${QT_VERSION_MINOR}-Python${Python3_VE
8282
include_directories(src)
8383
add_subdirectory(generator)
8484
add_subdirectory(src)
85-
# HACK add_subdirectory(extensions)
86-
# HACK add_subdirectory(tests)
87-
# HACK add_subdirectory(examples)
85+
86+
#-----------------------------------------------------------------------------
87+
# Extensions
88+
option(BUILD_EXTENSIONS "Build the extensions tree." OFF)
89+
if(BUILD_EXTENSIONS)
90+
add_subdirectory(extensions)
91+
endif()
92+
93+
#-----------------------------------------------------------------------------
94+
# Testing
95+
option(BUILD_TESTING "Build the testing tree." OFF)
96+
if(BUILD_TESTING)
97+
include(CTest)
98+
add_subdirectory(tests)
99+
endif()
100+
101+
#-----------------------------------------------------------------------------
102+
# Examples
103+
option(BUILD_EXAMPLES "Build the examples tree." OFF)
104+
if(BUILD_EXAMPLES)
105+
add_subdirectory(examples)
106+
endif()

0 commit comments

Comments
 (0)