-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
allow installation and uninstall in ${HOME}/.local, updated README
* no need to compile test program for install * added custom target test * provide a FindMIPP.cmake for copy/paste from other projects Signed-off-by: hayati ayguen <[email protected]>
- Loading branch information
Showing
6 changed files
with
101 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
if(MIPP_INCLUDE_DIRS) | ||
set(MIPP_FIND_QUIETLY TRUE) | ||
endif() | ||
|
||
find_path(MIPP_INCLUDE_DIRS NAMES mipp.h | ||
HINTS | ||
${MIPP_ROOT} | ||
$ENV{HOME}/.local | ||
PATH_SUFFIXES include/mipp | ||
) | ||
|
||
include(FindPackageHandleStandardArgs) | ||
find_package_handle_standard_args(MIPP DEFAULT_MSG MIPP_INCLUDE_DIRS) | ||
|
||
if(MIPP_FOUND AND NOT TARGET MIPP) | ||
message(STATUS "MIPP_FOUND -> creating interface library MIPP at ${MIPP_INCLUDE_DIRS}") | ||
add_library(MIPP INTERFACE) | ||
target_compile_definitions(MIPP INTERFACE HAVE_MIPP=1) | ||
target_include_directories(MIPP INTERFACE ${MIPP_INCLUDE_DIRS}) | ||
target_compile_features(MIPP INTERFACE cxx_std_11) | ||
else() | ||
message(WARNING "MIPP not found.") | ||
endif() | ||
|
||
mark_as_advanced(MIPP_INCLUDE_DIRS) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# http://www.vtk.org/Wiki/CMake_FAQ#Can_I_do_.22make_uninstall.22_with_CMake.3F | ||
|
||
IF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") | ||
MESSAGE(FATAL_ERROR "Cannot find install manifest: \"@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt\"") | ||
ENDIF(NOT EXISTS "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt") | ||
|
||
FILE(READ "@CMAKE_CURRENT_BINARY_DIR@/install_manifest.txt" files) | ||
STRING(REGEX REPLACE "\n" ";" files "${files}") | ||
FOREACH(file ${files}) | ||
MESSAGE(STATUS "Uninstalling \"$ENV{DESTDIR}${file}\"") | ||
IF(EXISTS "$ENV{DESTDIR}${file}") | ||
EXEC_PROGRAM( | ||
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | ||
OUTPUT_VARIABLE rm_out | ||
RETURN_VALUE rm_retval | ||
) | ||
IF(NOT "${rm_retval}" STREQUAL 0) | ||
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") | ||
ENDIF(NOT "${rm_retval}" STREQUAL 0) | ||
ELSEIF(IS_SYMLINK "$ENV{DESTDIR}${file}") | ||
EXEC_PROGRAM( | ||
"@CMAKE_COMMAND@" ARGS "-E remove \"$ENV{DESTDIR}${file}\"" | ||
OUTPUT_VARIABLE rm_out | ||
RETURN_VALUE rm_retval | ||
) | ||
IF(NOT "${rm_retval}" STREQUAL 0) | ||
MESSAGE(FATAL_ERROR "Problem when removing \"$ENV{DESTDIR}${file}\"") | ||
ENDIF(NOT "${rm_retval}" STREQUAL 0) | ||
ELSE(EXISTS "$ENV{DESTDIR}${file}") | ||
MESSAGE(STATUS "File \"$ENV{DESTDIR}${file}\" does not exist.") | ||
ENDIF(EXISTS "$ENV{DESTDIR}${file}") | ||
ENDFOREACH(file) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters