afb-session: Refactor and test unit
[src/app-framework-binder.git] / src / tests / CMakeLists.txt
index 4a1345e..7c052f3 100644 (file)
 # limitations under the License.
 ###########################################################################
 
-add_subdirectory(test-perm)
 
+PKG_CHECK_MODULES(check check)
+if(check_FOUND)
+       INCLUDE_DIRECTORIES(${INCLUDE_DIRS} ${check_INCLUDE_DIRS})
+       SET(link_libraries ${link_libraries} ${check_LDFLAGS})
+       add_subdirectory(session)
+else(check_FOUND)
+       MESSAGE(WARNING "check not found! no test!")
+endif(check_FOUND)