Commit aa83438c2dda627be54a7d85ad25cbec888408a2
1 parent
986e78ae
introduced BR_THIRDPARTY_RESOURCES for adding thirdparty qrc files
Showing
1 changed file
with
6 additions
and
1 deletions
openbr/CMakeLists.txt
| ... | ... | @@ -28,7 +28,12 @@ if(NOT BR_EMBEDDED) |
| 28 | 28 | install(FILES ${HEADERS} DESTINATION include/openbr/gui) |
| 29 | 29 | endif() |
| 30 | 30 | |
| 31 | -add_library(openbr SHARED ${SRC} ${BR_CORE} ${BR_JANUS} ${BR_GUI} ${BR_ICONS} ${BR_THIRDPARTY_SRC} ${BR_RESOURCES} ${NATURALSTRINGCOMPARE_SRC}) | |
| 31 | +# Compile third party resources | |
| 32 | +if(BR_THIRDPARTY_RESOURCES) | |
| 33 | + qt5_add_resources(THIRDPARTY_RESOURCES ${BR_THIRDPARTY_RESOURCES}) | |
| 34 | +endif() | |
| 35 | + | |
| 36 | +add_library(openbr SHARED ${SRC} ${BR_CORE} ${BR_JANUS} ${BR_GUI} ${BR_ICONS} ${BR_THIRDPARTY_SRC} ${BR_RESOURCES} ${NATURALSTRINGCOMPARE_SRC} ${THIRDPARTY_RESOURCES}) | |
| 32 | 37 | qt5_use_modules(openbr ${QT_DEPENDENCIES}) |
| 33 | 38 | set_target_properties(openbr PROPERTIES |
| 34 | 39 | DEFINE_SYMBOL BR_LIBRARY | ... | ... |