提交 58bbd6f2 编写于 作者: S Shengliang Guan

config compile error

上级 aa6a0cb4
...@@ -6,10 +6,7 @@ target_include_directories( ...@@ -6,10 +6,7 @@ target_include_directories(
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc" PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/inc"
) )
target_link_libraries( target_link_libraries(config os util)
config
PRIVATE os util
)
if(${BUILD_TEST}) if(${BUILD_TEST})
ADD_SUBDIRECTORY(test) ADD_SUBDIRECTORY(test)
......
...@@ -10,9 +10,7 @@ ...@@ -10,9 +10,7 @@
*/ */
#include <gtest/gtest.h> #include <gtest/gtest.h>
#include "os.h" #include "config.h"
#include "tfs.h"
class CfgTest : public ::testing::Test { class CfgTest : public ::testing::Test {
protected: protected:
...@@ -26,6 +24,6 @@ class CfgTest : public ::testing::Test { ...@@ -26,6 +24,6 @@ class CfgTest : public ::testing::Test {
static const char *pConfig; static const char *pConfig;
}; };
const char *TfsTest::pConfig; const char *CfgTest::pConfig;
TEST_F(CfgTest, 01_Taos_File) {} TEST_F(CfgTest, 01_Taos_File) {}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册