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 7d510a9 commit f91cf10Copy full SHA for f91cf10
tests/utests/CMakeLists.txt
@@ -10,8 +10,18 @@ enable_testing()
10
include_directories(${CMAKE_SOURCE_DIR}/src/)
11
include_directories("${GMOCK_DIR}/include")
12
13
+if(APPLE)
14
+ include_directories("${CMAKE_SOURCE_DIR}/src/MacMSRDriver") # target_include_directories doesn't work
15
+endif()
16
+
17
file(GLOB LSPCI_TEST_FILES lspci-utest.cpp ${CMAKE_SOURCE_DIR}/src/lspci.cpp)
-set(LIBS Threads::Threads PCM_STATIC)
18
19
20
+ set(LIBS PcmMsr Threads::Threads PCM_STATIC)
21
+else()
22
+ set(LIBS Threads::Threads PCM_STATIC)
23
24
25
add_executable(lspci-utest ${LSPCI_TEST_FILES})
26
27
target_link_libraries(
0 commit comments