Skip to content

Commit 43885be

Browse files
committed
cmake: add an option to disable building the CLI tools
Closes: #94
1 parent f5e65c0 commit 43885be

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

CMakeLists.txt

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,12 @@ option(PARTIO_ORIGIN_RPATH "Enable ORIGIN rpath in the installed libraries" OFF)
4040

4141
if(WIN32 OR APPLE)
4242
option(PARTIO_USE_GLVND "Use GLVND for OpenGL" OFF)
43-
option(PARTIO_BUILD_SHARED_LIBS "Enabled shared libraries" OFF)
43+
option(PARTIO_BUILD_SHARED_LIBS "Enable shared libraries" OFF)
4444
else()
4545
option(PARTIO_USE_GLVND "Use GLVND for OpenGL" ON)
46-
option(PARTIO_BUILD_SHARED_LIBS "Enabled shared libraries" ON)
46+
option(PARTIO_BUILD_SHARED_LIBS "Enable shared libraries" ON)
4747
endif()
48+
option(PARTIO_BUILD_TOOLS "Enable partio's CLI tools" ON)
4849

4950
# Enable C++11
5051
if (DEFINED ENV{CXXFLAGS_STD})
@@ -133,7 +134,9 @@ endif()
133134

134135
## Traverse subdirectories
135136
add_subdirectory(src/lib)
136-
add_subdirectory(src/tools)
137+
if (PARTIO_BUILD_TOOLS)
138+
add_subdirectory(src/tools)
139+
endif()
137140
add_subdirectory(src/py)
138141
add_subdirectory(src/doc)
139142

0 commit comments

Comments
 (0)