bemenu/test/CMakeLists.txt

19 lines
434 B
CMake
Raw Normal View History

2014-03-28 20:00:23 +00:00
SET(TESTS
)
2014-03-18 17:35:10 +00:00
2014-03-28 20:00:23 +00:00
INCLUDE_DIRECTORIES("${CMAKE_CURRENT_SOURCE_DIR}/../lib")
FOREACH (test ${TESTS})
ADD_EXECUTABLE(${test}_test ${test}.c)
TARGET_LINK_LIBRARIES(${test}_test bemenu ${BEMENU_LIBRARIES})
2014-03-28 20:00:23 +00:00
IF (WIN32)
ADD_TEST(${test}_test ${test}_test.exe)
ELSE ()
ADD_TEST(${test}_test ${test}_test)
ENDIF ()
ENDFOREACH (test)
2014-03-18 17:35:10 +00:00
2014-03-28 20:01:15 +00:00
MESSAGE("-!- Use 'make test' to run tests")
2014-03-18 17:35:10 +00:00
# vim: set ts=8 sw=4 tw=0 :