Commit 6163c97300bf31d3f801f4d4037b818632f066e1
Merge pull request #352 from biometrics/thirdparty_package
Thirdparty package
Showing
3 changed files
with
7 additions
and
0 deletions
CMakeLists.txt
| ... | ... | @@ -193,6 +193,7 @@ if(${BR_INSTALL_BRPY}) |
| 193 | 193 | endif() |
| 194 | 194 | |
| 195 | 195 | # Package |
| 196 | +if (NOT BR_PACKAGE_THIRDPARTY) | |
| 196 | 197 | set(CPACK_PACKAGE_EXECUTABLES "OpenBR" "OpenBR") |
| 197 | 198 | set(CPACK_CREATE_DESKTOP_LINKS "OpenBR") |
| 198 | 199 | if(CMAKE_HOST_WIN32) |
| ... | ... | @@ -217,3 +218,4 @@ else() |
| 217 | 218 | endif() |
| 218 | 219 | |
| 219 | 220 | include(CPack) |
| 221 | +endif() | ... | ... |
app/CMakeLists.txt
| 1 | 1 | # Build the command line interface |
| 2 | 2 | add_subdirectory(br) |
| 3 | 3 | |
| 4 | +if (NOT BR_PACKAGE_THIRDPARTY) | |
| 4 | 5 | # Build examples/tests |
| 5 | 6 | add_subdirectory(examples) |
| 6 | 7 | |
| ... | ... | @@ -8,3 +9,4 @@ add_subdirectory(examples) |
| 8 | 9 | if(NOT ${BR_EMBEDDED}) |
| 9 | 10 | add_subdirectory(br-gui) |
| 10 | 11 | endif() |
| 12 | +endif() | ... | ... |
openbr/CMakeLists.txt
| ... | ... | @@ -32,12 +32,15 @@ target_link_libraries(openbr ${BR_THIRDPARTY_LIBS}) |
| 32 | 32 | add_cppcheck(openbr) |
| 33 | 33 | |
| 34 | 34 | # Janus implementation |
| 35 | +set(BR_WITH_JANUS ON CACHE BOOL "Build IARPA Janus related applications.") | |
| 36 | +if (BR_WITH_JANUS) | |
| 35 | 37 | set(JANUS_BUILD_PP5_WRAPPER ${BR_WITH_PP5} CACHE BOOL "Build Janus implementation using PittPatt 5") |
| 36 | 38 | set(JANUS_BUILD_DOCS ${BR_BUILD_DOCUMENTATION} CACHE BOOL "Build Janus HTML Doxygen documentation") |
| 37 | 39 | mark_as_advanced(JANUS_BUILD_PP5_WRAPPER) |
| 38 | 40 | mark_as_advanced(JANUS_BUILD_DOCS) |
| 39 | 41 | set(JANUS_IMPLEMENTATION openbr) |
| 40 | 42 | add_subdirectory(janus) |
| 43 | +endif() | |
| 41 | 44 | |
| 42 | 45 | # Install |
| 43 | 46 | install(TARGETS openbr | ... | ... |