Commit 28d47c80c65dc982bc3cd9e982a9d19bdbe17ff2
1 parent
00758ed8
allow janus to be disabled
Showing
1 changed file
with
14 additions
and
8 deletions
openbr/CMakeLists.txt
| ... | ... | @@ -2,17 +2,24 @@ |
| 2 | 2 | configure_file(${BR_SHARE_DIR}/version.h.in version.h) |
| 3 | 3 | include_directories(${CMAKE_CURRENT_BINARY_DIR}) |
| 4 | 4 | |
| 5 | -# Janus API | |
| 6 | -include_directories(janus/include) | |
| 7 | -install(DIRECTORY janus/include DESTINATION .) | |
| 8 | -set(BR_JANUS janus/src/opencv_io/opencv_io.cpp) | |
| 9 | -add_definitions(-DJANUS_LIBRARY) | |
| 10 | - | |
| 11 | 5 | # Collect source files |
| 12 | -aux_source_directory(. SRC) | |
| 6 | +set(SRC openbr.cpp | |
| 7 | + openbr_plugin.cpp | |
| 8 | + universal_template.cpp) | |
| 13 | 9 | aux_source_directory(core BR_CORE) |
| 14 | 10 | include(plugins/plugins.cmake) |
| 15 | 11 | |
| 12 | +# Janus API | |
| 13 | +option(BR_WITH_JANUS "Build IARPA Janus related applications." ON) | |
| 14 | +if(BR_WITH_JANUS) | |
| 15 | + include_directories(janus/include) | |
| 16 | + install(DIRECTORY janus/include DESTINATION .) | |
| 17 | + set(BR_JANUS janus.cpp | |
| 18 | + janus_io.cpp | |
| 19 | + janus/src/opencv_io/opencv_io.cpp) | |
| 20 | + add_definitions(-DJANUS_LIBRARY) | |
| 21 | +endif() | |
| 22 | + | |
| 16 | 23 | # Optional GUI module |
| 17 | 24 | if(NOT BR_EMBEDDED) |
| 18 | 25 | aux_source_directory(gui BR_GUI) |
| ... | ... | @@ -32,7 +39,6 @@ target_link_libraries(openbr ${BR_THIRDPARTY_LIBS}) |
| 32 | 39 | add_cppcheck(openbr) |
| 33 | 40 | |
| 34 | 41 | # Janus implementation |
| 35 | -option(BR_WITH_JANUS "Build IARPA Janus related applications." ON) | |
| 36 | 42 | if(BR_WITH_JANUS) |
| 37 | 43 | set(JANUS_BUILD_PP5_WRAPPER ${BR_WITH_PP5} CACHE BOOL "Build Janus implementation using PittPatt 5") |
| 38 | 44 | set(JANUS_BUILD_DOCS ${BR_BUILD_DOCUMENTATION} CACHE BOOL "Build Janus HTML Doxygen documentation") | ... | ... |