1 add_compile_options(${SIGC_CFLAGS})
2 link_libraries(${SIGC_LDFLAGS} cppconsui)
4 add_executable(button button.cpp main.cpp)
5 add_executable(colorpicker colorpicker.cpp main.cpp)
6 add_executable(label label.cpp main.cpp)
7 add_executable(submenu submenu.cpp main.cpp)
8 add_executable(textentry textentry.cpp main.cpp)
9 add_executable(textview textview.cpp main.cpp)
10 add_executable(treeview treeview.cpp main.cpp)
11 add_executable(window window.cpp main.cpp)
14 add_custom_command(OUTPUT terminfo VERBATIM
15 COMMAND "${TIC_EXECUTABLE}" -o terminfo
16 "${CMAKE_CURRENT_SOURCE_DIR}/termex.src"
17 COMMAND "${CMAKE_COMMAND}" -E touch terminfo
20 add_custom_target(check VERBATIM COMMAND "${CMAKE_CTEST_COMMAND}"
24 add_custom_target(check)
26 add_custom_command(TARGET check POST_BUILD VERBATIM
27 COMMAND "${CMAKE_COMMAND}" -E echo "Tests cannot be run because required \
28 dependencies are missing, reconfigure the build and install the tools that are \
29 reported as needed for the testing"
33 add_dependencies(check
43 # List of test playbooks.
47 foreach(testname ${TESTS})
48 add_test(NAME "${testname}"
49 COMMAND "${PYTHON_EXECUTABLE}" "${CMAKE_CURRENT_SOURCE_DIR}/termex.py"
50 -t "${CMAKE_CURRENT_BINARY_DIR}/terminfo" test
51 "${CMAKE_CURRENT_SOURCE_DIR}/${testname}.test")