fix: minor changes
This commit is contained in:
parent
d5efcc9b11
commit
08e7a6e950
|
@ -4,17 +4,19 @@ MESSAGE(STATUS "build parser unit test")
|
||||||
# GoogleTest requires at least C++11
|
# GoogleTest requires at least C++11
|
||||||
SET(CMAKE_CXX_STANDARD 11)
|
SET(CMAKE_CXX_STANDARD 11)
|
||||||
|
|
||||||
add_executable(commonTest "commonTests.cpp")
|
if(TD_LINUX)
|
||||||
target_link_libraries(commonTest os util common gtest_main)
|
add_executable(commonTest "commonTests.cpp")
|
||||||
target_include_directories(
|
target_link_libraries(commonTest os util common gtest_main)
|
||||||
commonTest
|
target_include_directories(
|
||||||
PUBLIC "${TD_SOURCE_DIR}/include/libs/common/"
|
commonTest
|
||||||
PRIVATE "${TD_SOURCE_DIR}/source/libs/common/inc"
|
PUBLIC "${TD_SOURCE_DIR}/include/libs/common/"
|
||||||
)
|
PRIVATE "${TD_SOURCE_DIR}/source/libs/common/inc"
|
||||||
add_test(
|
)
|
||||||
NAME commonTest
|
add_test(
|
||||||
COMMAND commonTest
|
NAME commonTest
|
||||||
)
|
COMMAND commonTest
|
||||||
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# dataformatTest.cpp
|
# dataformatTest.cpp
|
||||||
add_executable(dataformatTest "dataformatTest.cpp")
|
add_executable(dataformatTest "dataformatTest.cpp")
|
||||||
|
|
|
@ -14,10 +14,12 @@ ENDIF()
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/src/util/inc)
|
INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/src/util/inc)
|
||||||
|
|
||||||
ADD_EXECUTABLE(simTests "simTests.cpp")
|
IF(TD_LINUX)
|
||||||
TARGET_LINK_LIBRARIES(simTests os util tsim_static gtest_main)
|
ADD_EXECUTABLE(simTests "simTests.cpp")
|
||||||
|
TARGET_LINK_LIBRARIES(simTests os util tsim_static gtest_main)
|
||||||
|
|
||||||
ADD_TEST(
|
ADD_TEST(
|
||||||
NAME simTests
|
NAME simTests
|
||||||
COMMAND simTests
|
COMMAND simTests
|
||||||
)
|
)
|
||||||
|
ENDIF()
|
Loading…
Reference in New Issue