CMake: move modules from CMakeTests/ -> CMake/

The name "CMakeTests" is inaccurate and irregular.
This commit is contained in:
Michael Maltese
2017-02-07 22:51:47 -08:00
parent f621a6af43
commit 45d1f88ea7
22 changed files with 1 additions and 1 deletions

19
CMake/FindOProfile.cmake Normal file
View File

@ -0,0 +1,19 @@
# - Try to find OProfile
# Once done this will define
# OPROFILE_FOUND - System has OProfile
# OPROFILE_INCLUDE_DIRS - The OProfile include directories
# OPROFILE_LIBRARIES - The libraries needed to use OProfile
find_path(OPROFILE_INCLUDE_DIR opagent.h)
find_library(OPROFILE_LIBRARY opagent
PATH_SUFFIXES oprofile)
set(OPROFILE_INCLUDE_DIRS ${OPROFILE_INCLUDE_DIR})
set(OPROFILE_LIBRARIES ${OPROFILE_LIBRARY})
include(FindPackageHandleStandardArgs)
find_package_handle_standard_args(OProfile DEFAULT_MSG
OPROFILE_LIBRARY OPROFILE_INCLUDE_DIR)
mark_as_advanced(OPROFILE_INCLUDE_DIR OPROFILE_LIBRARY)