mirror of https://github.com/PCSX2/pcsx2.git
CMake: Add vtune support on Windows
This commit is contained in:
parent
a2c6e050d7
commit
656c2775ac
|
@ -5,18 +5,20 @@
|
||||||
# VTUNE_INCLUDE_DIRS include path to jitprofiling.h
|
# VTUNE_INCLUDE_DIRS include path to jitprofiling.h
|
||||||
# VTUNE_LIBRARIES path to vtune libs
|
# VTUNE_LIBRARIES path to vtune libs
|
||||||
|
|
||||||
find_path(VTUNE_INCLUDE_DIRS NAMES jitprofiling.h PATHS
|
set(VTUNE_PATHS
|
||||||
/opt/intel/oneapi/vtune/latest/include
|
/opt/intel/oneapi/vtune/latest
|
||||||
/opt/intel/vtune_amplifier_xe_2018/include
|
/opt/intel/vtune_amplifier_xe_2018
|
||||||
/opt/intel/vtune_amplifier_xe_2017/include
|
/opt/intel/vtune_amplifier_xe_2017
|
||||||
/opt/intel/vtune_amplifier_xe_2016/include
|
/opt/intel/vtune_amplifier_xe_2016
|
||||||
|
"C:\\Program Files (x86)\\Intel\\oneAPI\\vtune\\latest"
|
||||||
)
|
)
|
||||||
|
|
||||||
find_library(VTUNE_LIBRARIES NAMES libjitprofiling.a PATHS
|
find_path(VTUNE_INCLUDE_DIRS NAMES jitprofiling.h PATHS ${VTUNE_PATHS} PATH_SUFFIXES include)
|
||||||
/opt/intel/oneapi/vtune/latest/lib64
|
|
||||||
/opt/intel/vtune_amplifier_xe_2018/lib64
|
find_library(VTUNE_LIBRARIES
|
||||||
/opt/intel/vtune_amplifier_xe_2017/lib64
|
NAMES ${CMAKE_STATIC_LIBRARY_PREFIX}jitprofiling${CMAKE_STATIC_LIBRARY_SUFFIX}
|
||||||
/opt/intel/vtune_amplifier_xe_2016/lib64
|
PATHS ${VTUNE_PATHS}
|
||||||
|
PATH_SUFFIXES lib64
|
||||||
)
|
)
|
||||||
|
|
||||||
# handle the QUIETLY and REQUIRED arguments and set VTUNE_FOUND to TRUE if
|
# handle the QUIETLY and REQUIRED arguments and set VTUNE_FOUND to TRUE if
|
||||||
|
|
|
@ -14,6 +14,7 @@ if (WIN32)
|
||||||
add_subdirectory(3rdparty/xz EXCLUDE_FROM_ALL)
|
add_subdirectory(3rdparty/xz EXCLUDE_FROM_ALL)
|
||||||
add_subdirectory(3rdparty/D3D12MemAlloc EXCLUDE_FROM_ALL)
|
add_subdirectory(3rdparty/D3D12MemAlloc EXCLUDE_FROM_ALL)
|
||||||
set(FFMPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/ffmpeg/include")
|
set(FFMPEG_INCLUDE_DIRS "${CMAKE_SOURCE_DIR}/3rdparty/ffmpeg/include")
|
||||||
|
find_package(Vtune)
|
||||||
else()
|
else()
|
||||||
find_package(PCAP REQUIRED)
|
find_package(PCAP REQUIRED)
|
||||||
find_package(LibLZMA REQUIRED)
|
find_package(LibLZMA REQUIRED)
|
||||||
|
|
Loading…
Reference in New Issue