Removing LIBKPMCORE_EXPORT from SmartParser and adding SMART support dependencies to testsmart in cmake
This commit is contained in:
parent
49c0c39f4b
commit
a3d43e159f
|
@ -18,8 +18,6 @@
|
|||
#if !defined(KPMCORE_SMARTPARSER_H)
|
||||
#define KPMCORE_SMARTPARSER_H
|
||||
|
||||
#include "util/libpartitionmanagerexport.h"
|
||||
|
||||
#include <QJsonDocument>
|
||||
#include <QString>
|
||||
|
||||
|
@ -31,7 +29,7 @@ class SmartDiskInformation;
|
|||
|
||||
@author Caio Carvalho <caiojcarvalho@gmail.com>
|
||||
*/
|
||||
class LIBKPMCORE_EXPORT SmartParser
|
||||
class SmartParser
|
||||
{
|
||||
public:
|
||||
SmartParser(const QString &device_path);
|
||||
|
|
|
@ -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})
|
||||
|
|
Loading…
Reference in New Issue