Skip to content

Commit 48b0d55

Browse files
Alexander Antonovrdementi
authored andcommitted
Update CMakeLists files
1 parent c7d2034 commit 48b0d55

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

CMakeLists.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,6 @@ set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)
184184
add_subdirectory(src)
185185
add_subdirectory(examples)
186186
add_subdirectory(tests)
187-
add_subdirectory(utests)
188187
add_subdirectory(googletest)
189188

190189
message(STATUS "Install directory: ${CMAKE_INSTALL_PREFIX}")

tests/CMakeLists.txt

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2022-2024, Intel Corporation
33

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})
56

67
if(UNIX)
78

@@ -34,3 +35,5 @@ if(PCM_FUZZ)
3435
target_link_libraries(pcm-fuzz Threads::Threads PCM_STATIC)
3536
target_link_libraries(pcm-memory-fuzz Threads::Threads PCM_STATIC)
3637
endif()
38+
39+
add_subdirectory(utests)

tests/utests/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: BSD-3-Clause
22
# Copyright (c) 2009-2025, Intel Corporation
33

4-
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin/tests/utests)
4+
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_TEST_BINARY_DIR}/utests)
55

66
project(pcm_utests LANGUAGES CXX)
77

@@ -11,7 +11,7 @@ include_directories(${CMAKE_SOURCE_DIR}/src/)
1111
include_directories("${GMOCK_DIR}/include")
1212

1313
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)
1515
add_executable(lspci-utest ${LSPCI_TEST_FILES})
1616

1717
target_link_libraries(

0 commit comments

Comments
 (0)