From a3d43e159fb5cb519510070a90dd333d1ab0cf6b Mon Sep 17 00:00:00 2001 From: Caio Carvalho Date: Sun, 21 Jan 2018 01:41:59 -0300 Subject: [PATCH] Removing LIBKPMCORE_EXPORT from SmartParser and adding SMART support dependencies to testsmart in cmake --- src/core/smartparser.h | 4 +--- test/CMakeLists.txt | 7 ++++++- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/core/smartparser.h b/src/core/smartparser.h index ace6135..3438e8d 100644 --- a/src/core/smartparser.h +++ b/src/core/smartparser.h @@ -18,8 +18,6 @@ #if !defined(KPMCORE_SMARTPARSER_H) #define KPMCORE_SMARTPARSER_H -#include "util/libpartitionmanagerexport.h" - #include #include @@ -31,7 +29,7 @@ class SmartDiskInformation; @author Caio Carvalho */ -class LIBKPMCORE_EXPORT SmartParser +class SmartParser { public: SmartParser(const QString &device_path); diff --git a/test/CMakeLists.txt b/test/CMakeLists.txt index 67b9cea..66681e1 100644 --- a/test/CMakeLists.txt +++ b/test/CMakeLists.txt @@ -53,6 +53,11 @@ find_package (Threads) kpm_test(testexternalcommand testexternalcommand.cpp) add_test(NAME testexternalcommand COMMAND testexternalcommand ${BACKEND}) +# Including SMART files reference +set(SMARTPARSER ${CMAKE_SOURCE_DIR}/src/core/smartdiskinformation.cpp + ${CMAKE_SOURCE_DIR}/src/core/smartattributeparseddata.cpp + ${CMAKE_SOURCE_DIR}/src/core/smartparser.cpp) + # Test SMART support -kpm_test(testsmart testsmart.cpp) +kpm_test(testsmart testsmart.cpp ${SMARTPARSER}) add_test(NAME testsmart COMMAND testsmart ${BACKEND})