Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,15 @@ enable_testing()

set (EXAMPLE_DIRECTORY ${CMAKE_SOURCE_DIR}/examples)

option (INCLUDE_JAVA
"Include Java in the build process"
ON)

add_subdirectory(c++)
add_subdirectory(tools)
add_subdirectory(java)
if (INCLUDE_JAVA)
add_subdirectory(java)
endif()

# Add another target called test-out that prints the results on failure
if (CMAKE_CONFIGURATION_TYPES)
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -62,3 +62,13 @@ To build only the Java library:
% mvn package

```

To build only the C++ library:
```shell
% mkdir build
% cd build
% cmake .. -DINCLUDE_JAVA=OFF
% make package
% make test-out

```