cmake_minimum_required(VERSION 2.6)
project(pong)

set(pong_SRCS
    ball.cpp
    ball.hpp
    direction.hpp
    game.cpp
    game.hpp
    i18n.hpp
    main.cpp
    paddle.cpp
    paddle.hpp
    prng_user.cpp
    prng_user.hpp
)

if(NOT HAVE_STD_TO_STRING)
  set(pong_SRCS ${pong_SRCS} to_string_replacement.hpp)
  find_package(Boost 1.20.0 REQUIRED)
  include_directories(${Boost_INCLUDE_DIRS})
endif()

if(MSVC)
  set(CMAKE_EXE_LINKER_FLAGS
  "/ENTRY:\"mainCRTStartup\" ${CMAKE_EXE_LINKER_FLAGS}")
endif()

if(STATIC_LINK)
  set(SFML_STATIC_LIBRARIES ON)
endif()
find_package(SFML 2 REQUIRED graphics window system)
include_directories(${SFML_INCLUDE_DIR})

add_executable(pong WIN32 ${pong_SRCS})
target_link_libraries(pong ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})

install(TARGETS pong DESTINATION ${CMAKE_INSTALL_BINDIR})

cmake_minimum_required(VERSION 2.6)
project(pong)

set(pong_SRCS
    ball.cpp
    ball.hpp
    direction.hpp
    game.cpp
    game.hpp
    i18n.hpp
    main.cpp
    paddle.cpp
    paddle.hpp
    prng_user.cpp
    prng_user.hpp
)

if(NOT HAVE_STD_TO_STRING)
  set(pong_SRCS ${pong_SRCS} to_string_replacement.hpp)
  find_package(Boost 1.20.0 REQUIRED)
  include_directories(${Boost_INCLUDE_DIRS})
endif()

if(MSVC)
  set(CMAKE_EXE_LINKER_FLAGS
  "/ENTRY:mainCRTStartup ${CMAKE_EXE_LINKER_FLAGS}")
endif()

if(STATIC_LINK)
  set(SFML_STATIC_LIBRARIES ON)
endif()
find_package(SFML 2 REQUIRED graphics window system)
include_directories(${SFML_INCLUDE_DIR})

add_executable(pong WIN32 ${pong_SRCS})
target_link_libraries(pong ${SFML_LIBRARIES} ${SFML_DEPENDENCIES})

install(TARGETS pong DESTINATION ${CMAKE_INSTALL_BINDIR})

Remove extra quotes from linker option
Remove extra quotes from linker option
