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})
|
${AWESOME_OPTIONAL_LIBRARIES})
|
||||||
|
|
||||||
target_link_libraries(${PROJECT_AWECLIENT_NAME}
|
target_link_libraries(${PROJECT_AWECLIENT_NAME}
|
||||||
${LIB_READLINE}
|
${AWESOMECLIENT_LIBRARIES})
|
||||||
${LIB_NCURSES})
|
|
||||||
|
|
||||||
# {{{ Generated sources
|
# {{{ Generated sources
|
||||||
file(GLOB LAYOUTGEN_DEPS ${SOURCE_DIR}/layouts/*.h)
|
file(GLOB LAYOUTGEN_DEPS ${SOURCE_DIR}/layouts/*.h)
|
||||||
|
|
|
@ -100,6 +100,7 @@ execute_process(
|
||||||
# this sets up:
|
# this sets up:
|
||||||
# AWESOME_REQUIRED_LIBRARIES
|
# AWESOME_REQUIRED_LIBRARIES
|
||||||
# AWESOME_REQUIRED_INCLUDE_DIRS
|
# AWESOME_REQUIRED_INCLUDE_DIRS
|
||||||
|
# AWESOMECLIENT_LIBRARIES
|
||||||
|
|
||||||
# Use pkgconfig to get most of the libraries
|
# Use pkgconfig to get most of the libraries
|
||||||
pkg_check_modules(AWESOME_REQUIRED REQUIRED
|
pkg_check_modules(AWESOME_REQUIRED REQUIRED
|
||||||
|
@ -149,13 +150,15 @@ if(NOT LUA_LIB)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
set(AWESOME_REQUIRED_LIBRARIES ${AWESOME_REQUIRED_LIBRARIES}
|
set(AWESOME_REQUIRED_LIBRARIES ${AWESOME_REQUIRED_LIBRARIES}
|
||||||
${LIB_READLINE}
|
|
||||||
${LIB_NCURSES}
|
|
||||||
${LIB_EV}
|
${LIB_EV}
|
||||||
${LUA_LIB})
|
${LUA_LIB})
|
||||||
|
|
||||||
set(AWESOME_REQUIRED_INCLUDE_DIRS ${AWESOME_REQUIRED_INCLUDE_DIRS}
|
set(AWESOME_REQUIRED_INCLUDE_DIRS ${AWESOME_REQUIRED_INCLUDE_DIRS}
|
||||||
${LUA_INC_DIR})
|
${LUA_INC_DIR})
|
||||||
|
|
||||||
|
set(AWESOMECLIENT_LIBRARIES
|
||||||
|
${LIB_READLINE}
|
||||||
|
${LIB_NCURSES})
|
||||||
# }}}
|
# }}}
|
||||||
|
|
||||||
# {{{ Optional libraries.
|
# {{{ Optional libraries.
|
||||||
|
|
Loading…
Reference in New Issue