We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c06b951 commit c7d2034Copy full SHA for c7d2034
tests/utests/CMakeLists.txt
@@ -0,0 +1,25 @@
1
+# SPDX-License-Identifier: BSD-3-Clause
2
+# Copyright (c) 2009-2025, Intel Corporation
3
+
4
+set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/tests/utests)
5
6
+project(pcm_utests LANGUAGES CXX)
7
8
+enable_testing()
9
10
+include_directories(${CMAKE_SOURCE_DIR}/src/)
11
+include_directories("${GMOCK_DIR}/include")
12
13
+file(GLOB LSPCI_TEST_FILES lspci-utest.cpp ${CMAKE_SOURCE_DIR}/src/lspci.cpp)
14
+set(LIBS PCM_STATIC)
15
+add_executable(lspci-utest ${LSPCI_TEST_FILES})
16
17
+target_link_libraries(
18
+ lspci-utest
19
+ GTest::gtest_main
20
+ GTest::gmock_main
21
+ ${LIBS}
22
+)
23
24
+include(GoogleTest)
25
+gtest_discover_tests(lspci-utest)
utests/lspci-utest.cpp renamed to tests/utests/lspci-utest.cpp
utests/CMakeLists.txt
0 commit comments