Export libobs cmake target, so external plugins can be built without ugly hacks

This commit is contained in:
BtbN
2014-05-05 18:57:30 +02:00
parent cfc3f2590e
commit 38594fff9e
6 changed files with 90 additions and 14 deletions

View File

@@ -0,0 +1,10 @@
set(PACKAGE_VERSION "@OBS_VERSION@")
if("${PACKAGE_VERSION}" VERSION_LESS "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_COMPATIBLE FALSE)
else()
set(PACKAGE_VERSION_COMPATIBLE TRUE)
if ("${PACKAGE_VERSION}" VERSION_EQUAL "${PACKAGE_FIND_VERSION}")
set(PACKAGE_VERSION_EXACT TRUE)
endif()
endif()