CMakeLists.txt

###################################################################################################
# pypizza python package

cedaAddPythonPackage(
	NAME pypizza
	SOURCEDIR ${CMAKE_CURRENT_SOURCE_DIR}/pypizza_package
	SOURCEFILES LICENSE README.md setup.py pypizza/__init__.py
	LIBS DateTime Shapes Pizza)

###################################################################################################
# Python tests

add_test(NAME datetime_example WORKING_DIRECTORY ${TEST_DIR} COMMAND ${Python2_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/datetime_example.py)
add_test(NAME open_and_close_database_example WORKING_DIRECTORY ${TEST_DIR} COMMAND ${Python2_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/open_and_close_database_example.py)
add_test(NAME pizza_example WORKING_DIRECTORY ${TEST_DIR} COMMAND ${Python2_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/pizza_example.py)
add_test(NAME shapes_example WORKING_DIRECTORY ${TEST_DIR} COMMAND ${Python2_EXECUTABLE} ${CMAKE_CURRENT_SOURCE_DIR}/shapes_example.py)