Skip to content

Commit

Permalink
Add BUILD_TESTS CMake option
Browse files Browse the repository at this point in the history
  • Loading branch information
pabloromicrosoft authored and GreyCat committed Oct 5, 2023
1 parent 083df99 commit 1f92566
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ project (kaitai_struct_cpp_stl_runtime CXX)
enable_testing()

option(BUILD_SHARED_LIBS "Build using shared libraries" ON)
option(BUILD_TESTS "Build tests" ON)

set (CMAKE_INCLUDE_CURRENT_DIR ON)

Expand Down Expand Up @@ -46,4 +47,6 @@ install(TARGETS ${PROJECT_NAME}
)

# Add the tests
add_subdirectory(tests)
if(BUILD_TESTS)
add_subdirectory(tests)
endif()

0 comments on commit 1f92566

Please sign in to comment.