build scenario changes
This commit is contained in:
parent
5c3a4a592e
commit
2cce5f52f0
5 changed files with 76 additions and 25 deletions
|
@ -1,20 +1,26 @@
|
|||
#copied from here, thank you
|
||||
#https://github.com/sipwise/sems/blob/master/cmake/FindLame.cmake
|
||||
|
||||
FIND_PATH(LAME_INCLUDE_DIR lame/lame.h)
|
||||
FIND_LIBRARY(LAME_LIBRARIES NAMES mp3lame)
|
||||
find_path(LAME_INCLUDE_DIR lame/lame.h)
|
||||
find_library(LAME_LIBRARIES lame NAMES mp3lame)
|
||||
|
||||
IF(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
|
||||
SET(LAME_FOUND TRUE)
|
||||
ENDIF(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
|
||||
if(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
|
||||
set(LAME_FOUND TRUE)
|
||||
endif(LAME_INCLUDE_DIR AND LAME_LIBRARIES)
|
||||
|
||||
IF(LAME_FOUND)
|
||||
IF (NOT Lame_FIND_QUIETLY)
|
||||
MESSAGE(STATUS "Found lame includes: ${LAME_INCLUDE_DIR}/lame/lame.h")
|
||||
MESSAGE(STATUS "Found lame library: ${LAME_LIBRARIES}")
|
||||
ENDIF (NOT Lame_FIND_QUIETLY)
|
||||
ELSE(LAME_FOUND)
|
||||
IF (Lame_FIND_REQUIRED)
|
||||
MESSAGE(FATAL_ERROR "Could NOT find lame development files")
|
||||
ENDIF (Lame_FIND_REQUIRED)
|
||||
ENDIF(LAME_FOUND)
|
||||
if(LAME_FOUND)
|
||||
add_library(LAME::LAME SHARED IMPORTED)
|
||||
set_target_properties(LAME::LAME PROPERTIES
|
||||
IMPORTED_LOCATION "${LAME_LIBRARIES}"
|
||||
INTERFACE_INCLUDE_DIRECTORIES "${LAME_INCLUDE_DIR}/lame"
|
||||
INTERFACE_LINK_LIBRARIES "${LAME_LIBRARIES}"
|
||||
)
|
||||
if (NOT Lame_FIND_QUIETLY)
|
||||
message(STATUS "Found lame includes: ${LAME_INCLUDE_DIR}/lame")
|
||||
message(STATUS "Found lame library: ${LAME_LIBRARIES}")
|
||||
endif (NOT Lame_FIND_QUIETLY)
|
||||
else(LAME_FOUND)
|
||||
if (Lame_FIND_REQUIRED)
|
||||
message(FATAL_ERROR "Could NOT find lame development files")
|
||||
endif (Lame_FIND_REQUIRED)
|
||||
endif(LAME_FOUND)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue