Commit 895363a60f3958172b4d625b881bc5f94c9a6223
1 parent
f0665fee
Added BR_PACKAGE_THIRDPARTY flag
Showing
2 changed files
with
4 additions
and
0 deletions
CMakeLists.txt
| @@ -193,6 +193,7 @@ if(${BR_INSTALL_BRPY}) | @@ -193,6 +193,7 @@ if(${BR_INSTALL_BRPY}) | ||
| 193 | endif() | 193 | endif() |
| 194 | 194 | ||
| 195 | # Package | 195 | # Package |
| 196 | +if (NOT BR_PACKAGE_THIRDPARTY) | ||
| 196 | set(CPACK_PACKAGE_EXECUTABLES "OpenBR" "OpenBR") | 197 | set(CPACK_PACKAGE_EXECUTABLES "OpenBR" "OpenBR") |
| 197 | set(CPACK_CREATE_DESKTOP_LINKS "OpenBR") | 198 | set(CPACK_CREATE_DESKTOP_LINKS "OpenBR") |
| 198 | if(CMAKE_HOST_WIN32) | 199 | if(CMAKE_HOST_WIN32) |
| @@ -217,3 +218,4 @@ else() | @@ -217,3 +218,4 @@ else() | ||
| 217 | endif() | 218 | endif() |
| 218 | 219 | ||
| 219 | include(CPack) | 220 | include(CPack) |
| 221 | +endif() |
app/CMakeLists.txt
| 1 | # Build the command line interface | 1 | # Build the command line interface |
| 2 | add_subdirectory(br) | 2 | add_subdirectory(br) |
| 3 | 3 | ||
| 4 | +if (NOT BR_PACKAGE_THIRDPARTY) | ||
| 4 | # Build examples/tests | 5 | # Build examples/tests |
| 5 | add_subdirectory(examples) | 6 | add_subdirectory(examples) |
| 6 | 7 | ||
| @@ -8,3 +9,4 @@ add_subdirectory(examples) | @@ -8,3 +9,4 @@ add_subdirectory(examples) | ||
| 8 | if(NOT ${BR_EMBEDDED}) | 9 | if(NOT ${BR_EMBEDDED}) |
| 9 | add_subdirectory(br-gui) | 10 | add_subdirectory(br-gui) |
| 10 | endif() | 11 | endif() |
| 12 | +endif() |