cmake_minimum_required(VERSION 2.6) set(SRC levatest.cpp tests.cpp) find_path(CPPUNIT_PATH cppunit/extensions/HelperMacros.h) find_library(CPPUNIT_LIB cppunit) include_directories(include ../libleva ${CPPUNIT_PATH}) add_executable(tests ${SRC}) target_link_libraries(tests leva ${CPPUNIT_LIB})