add_subdirectory(Unity) include_directories("${CMAKE_CURRENT_SOURCE_DIR}") add_executable(testing ./test.cpp ) set_target_properties(testing PROPERTIES LINKER_LANGUAGE CXX) target_link_libraries(testing unity)