CMAKE_MINIMUM_REQUIRED(VERSION 2.8) ADD_SUBDIRECTORY(notification) ADD_SUBDIRECTORY(notification-ex) ADD_SUBDIRECTORY(tests) ENABLE_TESTING() SET(NOTIFICATION_EX_UNIT_TESTS notification-ex-unittests) ADD_TEST(NAME ${NOTIFICATION_EX_UNIT_TESTS} COMMAND ${NOTIFICATION_EX_UNIT_TESTS}) ADD_DEPENDENCIES(${NOTIFICATION_EX_UNIT_TESTS} notification-ex) SET(NOTIFICATION_UNIT_TESTS notification-unittests) ADD_TEST(NAME ${NOTIFICATION_UNIT_TESTS} COMMAND ${NOTIFICATION_UNIT_TESTS}) ADD_DEPENDENCIES(${NOTIFICATION_UNIT_TESTS} notification)