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