cmake: only awesome-client needs to link readline

This commit is contained in:
Michael Gehring 2008-06-24 14:44:08 +02:00
parent 9d9bb48094
commit c19fde1f01
2 changed files with 6 additions and 4 deletions

View File

@ -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)

View File

@ -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.