INCLUDE_DIRECTORIES(${CMAKE_CURRENT_SOURCE_DIR}) SET(UTF8_LIB_SRCS utf8.c ) SET(UTF8_LIB_HDRS utf8.h ) ADD_LIBRARY(utf8_lib ${UTF8_LIB_SRCS} ${UTF8_LIB_HDRS}) ENABLE_TESTING() ADD_SUBDIRECTORY(tests)