diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-09 18:16:28 +0100 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-12-09 18:16:28 +0100 |
commit | 4f9c633bc9a661fbeb367e950f6789d8de6782e6 (patch) | |
tree | 4291547da96f114fb050aefd104e49a3a2f3efb8 /cmake/opentrack-boilerplate.cmake | |
parent | 89f104782e673cfacec0eab016dc22a51533f113 (diff) |
compat: add easier translate boilerplate for non-qobject
Diffstat (limited to 'cmake/opentrack-boilerplate.cmake')
-rw-r--r-- | cmake/opentrack-boilerplate.cmake | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmake/opentrack-boilerplate.cmake b/cmake/opentrack-boilerplate.cmake index d3becd56..56117e09 100644 --- a/cmake/opentrack-boilerplate.cmake +++ b/cmake/opentrack-boilerplate.cmake @@ -166,6 +166,7 @@ function(otr_module n_) target_link_libraries(${n} opentrack-api opentrack-options opentrack-compat) endif() + target_compile_definitions("${n}" PRIVATE "-DOTR_MODULE_NAME=\"${n_}\"") string(REPLACE "-" "_" build-n ${n_}) string(TOUPPER "${build-n}" build-n) set_property(TARGET ${n} PROPERTY DEFINE_SYMBOL "BUILD_${build-n}") |