File tree Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Expand file tree Collapse file tree 3 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -184,7 +184,6 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
184
184
add_subdirectory (src )
185
185
add_subdirectory (examples )
186
186
add_subdirectory (tests )
187
- add_subdirectory (utests )
188
187
add_subdirectory (googletest )
189
188
190
189
message (STATUS "Install directory: ${CMAKE_INSTALL_PREFIX} " )
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: BSD-3-Clause
2
2
# Copyright (c) 2022-2024, Intel Corporation
3
3
4
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin/tests )
4
+ set (CMAKE_TEST_BINARY_DIR ${CMAKE_BINARY_DIR} /bin/tests )
5
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_TEST_BINARY_DIR} )
5
6
6
7
if (UNIX )
7
8
@@ -34,3 +35,5 @@ if(PCM_FUZZ)
34
35
target_link_libraries (pcm-fuzz Threads::Threads PCM_STATIC )
35
36
target_link_libraries (pcm-memory-fuzz Threads::Threads PCM_STATIC )
36
37
endif ()
38
+
39
+ add_subdirectory (utests )
Original file line number Diff line number Diff line change 1
1
# SPDX-License-Identifier: BSD-3-Clause
2
2
# Copyright (c) 2009-2025, Intel Corporation
3
3
4
- set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR} /bin/tests /utests )
4
+ set (CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_TEST_BINARY_DIR} /utests )
5
5
6
6
project (pcm_utests LANGUAGES CXX )
7
7
@@ -11,7 +11,7 @@ include_directories(${CMAKE_SOURCE_DIR}/src/)
11
11
include_directories ("${GMOCK_DIR} /include" )
12
12
13
13
file (GLOB LSPCI_TEST_FILES lspci-utest.cpp ${CMAKE_SOURCE_DIR} /src/lspci.cpp )
14
- set (LIBS PCM_STATIC )
14
+ set (LIBS Threads::Threads PCM_STATIC )
15
15
add_executable (lspci-utest ${LSPCI_TEST_FILES} )
16
16
17
17
target_link_libraries (
You can’t perform that action at this time.
0 commit comments