diff --git a/CMakeLists.txt b/CMakeLists.txt index 0deea75..14df738 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -193,6 +193,7 @@ if(${BR_INSTALL_BRPY}) endif() # Package +if (NOT BR_PACKAGE_THIRDPARTY) set(CPACK_PACKAGE_EXECUTABLES "OpenBR" "OpenBR") set(CPACK_CREATE_DESKTOP_LINKS "OpenBR") if(CMAKE_HOST_WIN32) @@ -217,3 +218,4 @@ else() endif() include(CPack) +endif() diff --git a/app/CMakeLists.txt b/app/CMakeLists.txt index 54da62b..8230427 100644 --- a/app/CMakeLists.txt +++ b/app/CMakeLists.txt @@ -1,6 +1,7 @@ # Build the command line interface add_subdirectory(br) +if (NOT BR_PACKAGE_THIRDPARTY) # Build examples/tests add_subdirectory(examples) @@ -8,3 +9,4 @@ add_subdirectory(examples) if(NOT ${BR_EMBEDDED}) add_subdirectory(br-gui) endif() +endif() diff --git a/openbr/CMakeLists.txt b/openbr/CMakeLists.txt index 8f82b9f..a4c6a2c 100644 --- a/openbr/CMakeLists.txt +++ b/openbr/CMakeLists.txt @@ -32,12 +32,15 @@ target_link_libraries(openbr ${BR_THIRDPARTY_LIBS}) add_cppcheck(openbr) # Janus implementation +set(BR_WITH_JANUS ON CACHE BOOL "Build IARPA Janus related applications.") +if (BR_WITH_JANUS) set(JANUS_BUILD_PP5_WRAPPER ${BR_WITH_PP5} CACHE BOOL "Build Janus implementation using PittPatt 5") set(JANUS_BUILD_DOCS ${BR_BUILD_DOCUMENTATION} CACHE BOOL "Build Janus HTML Doxygen documentation") mark_as_advanced(JANUS_BUILD_PP5_WRAPPER) mark_as_advanced(JANUS_BUILD_DOCS) set(JANUS_IMPLEMENTATION openbr) add_subdirectory(janus) +endif() # Install install(TARGETS openbr