cmake_minimum_required(VERSION 2.6) IF(CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang") # GNU systems need to define the Mersenne exponent for the RNG to compile w/o warning ADD_DEFINITIONS("-DSFMT_MEXP=19937") ENDIF() 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) if (WITH_TESTCLIENT) add_subdirectory(testclient) endif(WITH_TESTCLIENT) 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)