Line
Link Here
|
0 |
-- libcec-libcec-4.0.2/src/cec-client/CMakeLists.txt |
0 |
++ libcec-libcec-4.0.2/src/cec-client/CMakeLists.txt |
Lines 27-34
set(cecclient_SOURCES cec-client.cpp)
Link Here
|
27 |
check_library_exists(curses initscr "" HAVE_CURSES_API) |
27 |
check_library_exists(curses initscr "" HAVE_CURSES_API) |
28 |
if (HAVE_CURSES_API) |
28 |
if (HAVE_CURSES_API) |
29 |
list(APPEND cecclient_SOURCES curses/CursesControl.cpp) |
29 |
list(APPEND cecclient_SOURCES curses/CursesControl.cpp) |
|
|
30 |
|
31 |
# tinfo |
32 |
find_library(HAVE_CURSES_TINFO tinfo) |
30 |
endif() |
33 |
endif() |
31 |
|
34 |
|
|
|
35 |
|
32 |
add_executable(cec-client ${cecclient_SOURCES}) |
36 |
add_executable(cec-client ${cecclient_SOURCES}) |
33 |
set_target_properties(cec-client PROPERTIES VERSION ${LIBCEC_VERSION_MAJOR}.${LIBCEC_VERSION_MINOR}.${LIBCEC_VERSION_PATCH}) |
37 |
set_target_properties(cec-client PROPERTIES VERSION ${LIBCEC_VERSION_MAJOR}.${LIBCEC_VERSION_MINOR}.${LIBCEC_VERSION_PATCH}) |
34 |
target_link_libraries(cec-client ${p8-platform_LIBRARIES}) |
38 |
target_link_libraries(cec-client ${p8-platform_LIBRARIES}) |
Lines 44-49
if (NOT WIN32)
Link Here
|
44 |
# curses |
48 |
# curses |
45 |
if (HAVE_CURSES_API) |
49 |
if (HAVE_CURSES_API) |
46 |
target_link_libraries(cec-client curses) |
50 |
target_link_libraries(cec-client curses) |
|
|
51 |
if (HAVE_CURSES_TINFO) |
52 |
target_link_libraries(cec-client tinfo) |
53 |
endif() |
47 |
endif() |
54 |
endif() |
48 |
|
55 |
|
49 |
# rt |
56 |
# rt |