cmake_minimum_required(VERSION 2.6)
add_subdirectory(common)
if(WITH_SERVER)
	add_subdirectory(servatrice)
endif(WITH_SERVER)
if (NOT WITHOUT_CLIENT)
	add_subdirectory(cockatrice)
	add_subdirectory(oracle)
endif(NOT WITHOUT_CLIENT)

FILE(GLOB sounds "${CMAKE_CURRENT_SOURCE_DIR}/sounds/*.raw")
INSTALL(FILES ${sounds} DESTINATION share/cockatrice/sounds)
FILE(GLOB zonebg "${CMAKE_CURRENT_SOURCE_DIR}/zonebg/*.*")
INSTALL(FILES ${zonebg} DESTINATION share/cockatrice/zonebg)