cmake: only awesome-client needs to link readline
This commit is contained in:
parent
9d9bb48094
commit
c19fde1f01
|
@ -101,8 +101,7 @@ target_link_libraries(${PROJECT_AWE_NAME}
|
|||
${AWESOME_OPTIONAL_LIBRARIES})
|
||||
|
||||
target_link_libraries(${PROJECT_AWECLIENT_NAME}
|
||||
${LIB_READLINE}
|
||||
${LIB_NCURSES})
|
||||
${AWESOMECLIENT_LIBRARIES})
|
||||
|
||||
# {{{ Generated sources
|
||||
file(GLOB LAYOUTGEN_DEPS ${SOURCE_DIR}/layouts/*.h)
|
||||
|
|
|
@ -100,6 +100,7 @@ execute_process(
|
|||
# this sets up:
|
||||
# AWESOME_REQUIRED_LIBRARIES
|
||||
# AWESOME_REQUIRED_INCLUDE_DIRS
|
||||
# AWESOMECLIENT_LIBRARIES
|
||||
|
||||
# Use pkgconfig to get most of the libraries
|
||||
pkg_check_modules(AWESOME_REQUIRED REQUIRED
|
||||
|
@ -149,13 +150,15 @@ if(NOT LUA_LIB)
|
|||
endif()
|
||||
|
||||
set(AWESOME_REQUIRED_LIBRARIES ${AWESOME_REQUIRED_LIBRARIES}
|
||||
${LIB_READLINE}
|
||||
${LIB_NCURSES}
|
||||
${LIB_EV}
|
||||
${LUA_LIB})
|
||||
|
||||
set(AWESOME_REQUIRED_INCLUDE_DIRS ${AWESOME_REQUIRED_INCLUDE_DIRS}
|
||||
${LUA_INC_DIR})
|
||||
|
||||
set(AWESOMECLIENT_LIBRARIES
|
||||
${LIB_READLINE}
|
||||
${LIB_NCURSES})
|
||||
# }}}
|
||||
|
||||
# {{{ Optional libraries.
|
||||
|
|
Loading…
Reference in New Issue