Skip to content

Commit

Permalink
BUILD: Enable testing support.
Browse files Browse the repository at this point in the history
  • Loading branch information
berenm committed Dec 31, 2014
1 parent c8d7f41 commit cf8dcc5
Show file tree
Hide file tree
Showing 3 changed files with 437 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Expand Up @@ -155,6 +155,10 @@ add_definitions(-DPACKAGE_STRING="xoreos ${xoreos_VERSION}")
parse_configure(configure.ac src)
target_link_libraries(xoreos ${XOREOS_LIBRARIES})

include(CTest)
enable_testing()
add_subdirectory(test)

# -------------------------------------------------------------------------
# documentation
option(XOREOS_BUILD_DOCUMENTATION "Use Doxygen to create the HTML based API documentation" OFF)
Expand Down
7 changes: 7 additions & 0 deletions test/CMakeLists.txt
@@ -0,0 +1,7 @@
if (NOT BUILD_TESTING)
return()
endif()

add_executable(test-transmatrix test-transmatrix.cpp)
target_link_libraries(test-transmatrix ${xoreos_LINK_TARGETS})
add_test(transmatrix ${CMAKE_BINARY_DIR}/bin/test-transmatrix)

0 comments on commit cf8dcc5

Please sign in to comment.