Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solution for Cmake/Modules/FindITPP.cmake:62 #35

Open
Nskey opened this issue Jan 27, 2020 · 0 comments
Open

solution for Cmake/Modules/FindITPP.cmake:62 #35

Nskey opened this issue Jan 27, 2020 · 0 comments

Comments

@Nskey
Copy link

Nskey commented Jan 27, 2020

Change all txt in LTE-Cell-Scanner/cmake/modules/findITPP.cmake
new txt

- Find ITPP

Find the native ITPP includes and library

This module defines

ITPP_INCLUDE_DIR, where to find itpp/itbase.h, etc.

ITPP_LIBRARIES, the libraries needed to use ITPP.

ITPP_FOUND, If false, do not try to use ITPP.

also defined, but not for general use are

ITPP_LIBRARY, where to find the ITPP library.

include(FindPkgConfig)
pkg_check_modules(PC_ITPP itpp)

find_path(ITPP_INCLUDE_DIR
NAMES itpp/itbase.h
HINTS ${PC_ITPP_INCLUDEDIR}
${PC_ITPP_INCLUDEDIR}/include
${ITPP_DIR}/include
PATHS
/usr/pkgs64/include
/usr/include
/usr/local/include
)
find_library(ITPP_LIBRARY_NORMAL
NAMES itpp
HINTS ${PC_ITPP_LIBDIR}
PATHS ${ITPP_DIR}/libs
"${ITPP_DIR}\win32\lib"
/usr/pkgs64/lib
/usr/lib64
/usr/lib
/usr/local/lib
)
find_library(ITPP_LIBRARY_DEBUG
NAMES itpp_debug
HINTS ${PC_ITPP_LIBDIR}
PATHS ${ITPP_DIR}/libs
"${ITPP_DIR}\win32\lib"
/usr/pkgs64/lib
/usr/lib64
/usr/lib
/usr/local/lib
)

if (ITPP_LIBRARY_NORMAL OR ITPP_LIBRARY_DEBUG)
if ((CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") AND ITPP_LIBRARY_DEBUG)
SET (ITPP_LIBRARY ${ITPP_LIBRARY_DEBUG})
else ((CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") AND ITPP_LIBRARY_DEBUG)
SET (ITPP_LIBRARY ${ITPP_LIBRARY_NORMAL})
endif ((CMAKE_BUILD_TYPE STREQUAL "Debug" OR CMAKE_BUILD_TYPE STREQUAL "RelWithDebInfo") AND ITPP_LIBRARY_DEBUG)
endif (ITPP_LIBRARY_NORMAL OR ITPP_LIBRARY_DEBUG)

if (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
SET(ITPP_LIBRARIES ${ITPP_LIBRARY})
SET(ITPP_FOUND "YES")
else (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)
SET(ITPP_FOUND "NO")
endif (ITPP_LIBRARY AND ITPP_INCLUDE_DIR)

if (ITPP_FOUND)
if (NOT ITPP_FIND_QUIETLY)
MESSAGE(STATUS "Found ITPP: ${ITPP_LIBRARIES}")
endif (NOT ITPP_FIND_QUIETLY)
else (ITPP_FOUND)
if (ITPP_FIND_REQUIRED)
MESSAGE(FATAL_ERROR "Could not find ITPP library")
endif (ITPP_FIND_REQUIRED)
endif (ITPP_FOUND)

mark_as_advanced(
ITPP_LIBRARY
ITPP_INCLUDE_DIR
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant