cmake_minimum_required(VERSION 2.8)

project(Warrior-of-Dreamworld-r2)

if (WIN32)
    set (Boost_USE_STATIC_LIBS TRUE)
endif()

if( NOT CMAKE_BUILD_TYPE )
    set( CMAKE_BUILD_TYPE Debug CACHE STRING
            "Choose the type of build, options are: None Debug Release RelWithDebInfo
            MinSizeRel."
            FORCE )
endif()

if (CMAKE_COMPILER_IS_GNUCXX AND PROFILE_MODE)
    add_definitions(-pg)
    set (CMAKE_EXE_LINKER_FLAGS "-pg")
    set (CMAKE_BUILD_TYPE Debug)
endif()

if (HANDLER_TRACKING)
    add_definitions(-DBOOST_ASIO_ENABLE_HANDLER_TRACKING)
endif()

if (CMAKE_COMPILER_IS_GNUCXX)
    add_definitions(-std=gnu++11)
    add_definitions(-L /lib64/)
    add_definitions(-lpthread)
endif()

if (NOT BUILD_SERVER)
    set(BUILD_SERVER TRUE CACHE BOOL
    "Check it, if you want to build server"
    FORCE)
else (NOT BUILD_SERVER)
    add_subdirectory(Server)
endif()

if (NOT BUILD_CLIENT)
    set(BUILD_CLIENT TRUE CACHE BOOL
    "Check it, if you want to build client"
    FORCE)
else (NOT BUILD_CLIENT)
    add_subdirectory(Client)
endif()

cmake_minimum_required(VERSION 2.8)

project(Warrior-of-Dreamworld-r2)

if (WIN32)
    set (Boost_USE_STATIC_LIBS TRUE)
endif()

if( NOT CMAKE_BUILD_TYPE )
    set( CMAKE_BUILD_TYPE Debug CACHE STRING
            "Choose the type of build, options are: None Debug Release RelWithDebInfo
            MinSizeRel."
            FORCE )
endif()

if (CMAKE_COMPILER_IS_GNUCXX AND PROFILE_MODE)
    add_definitions(-pg)
    set (CMAKE_EXE_LINKER_FLAGS "-pg")
    set (CMAKE_BUILD_TYPE Debug)
endif()

if (HANDLER_TRACKING)
    add_definitions(-DBOOST_ASIO_ENABLE_HANDLER_TRACKING)
endif()

if (CMAKE_COMPILER_IS_GNUCXX)
    add_definitions(-std=gnu++11)
endif()

if (NOT BUILD_SERVER)
    set(BUILD_SERVER TRUE CACHE BOOL
    "Check it, if you want to build server"
    FORCE)
else (NOT BUILD_SERVER)
    add_subdirectory(Server)
endif()

if (NOT BUILD_CLIENT)
    set(BUILD_CLIENT TRUE CACHE BOOL
    "Check it, if you want to build client"
    FORCE)
else (NOT BUILD_CLIENT)
    add_subdirectory(Client)
endif()

Remove unneeded lines from cmake file: No effect anyway
Remove unneeded lines from cmake file: No effect anyway
