From e9d69db8341ee7452ce4e8f8dc54e972b0390bfe Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Sun, 2 Jul 2017 22:12:10 -0700 Subject: Add zlib benchmark --- CMakeLists.txt | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'CMakeLists.txt') diff --git a/CMakeLists.txt b/CMakeLists.txt index ae29a99e..d0665ac9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -59,6 +59,8 @@ if(NOT HARDINFO_NOSYNC) pkg_check_modules(LIBSOUP libsoup-2.4>=2.24) endif() +include(FindZLIB REQUIRED) + include_directories( ${CMAKE_SOURCE_DIR} ${CMAKE_SOURCE_DIR}/includes @@ -66,6 +68,7 @@ include_directories( ${CMAKE_BINARY_DIR} ${GTK_INCLUDE_DIRS} ${LIBSOUP_INCLUDE_DIRS} + ${ZLIB_INCLUDE_DIRS} ) link_directories( ${GTK_LIBRARY_DIRS} @@ -134,6 +137,7 @@ set(MODULE_benchmark_SOURCES modules/benchmark/nqueens.c modules/benchmark/raytrace.c modules/benchmark/sha1.c + modules/benchmark/zlib.c ) set_source_files_properties( @@ -173,6 +177,7 @@ target_link_libraries(hardinfo ${LIBSOUP_LIBRARIES} hardinfo-shell m + ${ZLIB_LIBRARIES} ) configure_file(config.h.cmake ${CMAKE_BINARY_DIR}/config.h @ONLY) -- cgit v1.2.3