fix: minor changes
This commit is contained in:
parent
d5efcc9b11
commit
08e7a6e950
|
@ -4,6 +4,7 @@ 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)
|
||||||
|
|
||||||
|
if(TD_LINUX)
|
||||||
add_executable(commonTest "commonTests.cpp")
|
add_executable(commonTest "commonTests.cpp")
|
||||||
target_link_libraries(commonTest os util common gtest_main)
|
target_link_libraries(commonTest os util common gtest_main)
|
||||||
target_include_directories(
|
target_include_directories(
|
||||||
|
@ -15,6 +16,7 @@ add_test(
|
||||||
NAME commonTest
|
NAME commonTest
|
||||||
COMMAND commonTest
|
COMMAND commonTest
|
||||||
)
|
)
|
||||||
|
endif()
|
||||||
|
|
||||||
# dataformatTest.cpp
|
# dataformatTest.cpp
|
||||||
add_executable(dataformatTest "dataformatTest.cpp")
|
add_executable(dataformatTest "dataformatTest.cpp")
|
||||||
|
|
|
@ -14,6 +14,7 @@ ENDIF()
|
||||||
|
|
||||||
INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/src/util/inc)
|
INCLUDE_DIRECTORIES(${TD_SOURCE_DIR}/src/util/inc)
|
||||||
|
|
||||||
|
IF(TD_LINUX)
|
||||||
ADD_EXECUTABLE(simTests "simTests.cpp")
|
ADD_EXECUTABLE(simTests "simTests.cpp")
|
||||||
TARGET_LINK_LIBRARIES(simTests os util tsim_static gtest_main)
|
TARGET_LINK_LIBRARIES(simTests os util tsim_static gtest_main)
|
||||||
|
|
||||||
|
@ -21,3 +22,4 @@ ADD_TEST(
|
||||||
NAME simTests
|
NAME simTests
|
||||||
COMMAND simTests
|
COMMAND simTests
|
||||||
)
|
)
|
||||||
|
ENDIF()
|
Loading…
Reference in New Issue