Source

gb_emulator / gb_net / CMakeLists.txt

Full commit
find_package(Boost REQUIRED)

include_directories("include")
include_directories(${Boost_INCLUDE_DIRS})

link_directories(${Boost_LIBRARY_DIRS})

add_definitions(-DUNICODE -D_UNICODE)
add_definitions(-DGBNET_EXPORTS)
add_definitions(-DWIN32_LEAN_AND_MEAN)
add_definitions(-D_WIN32_WINNT=0x0600)

# Set warning level
if(MSVC)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX")
elseif(CMAKE_COMPILER_IS_GNUCC OR CMAKE_COMPILER_IS_GNUCXX)
	set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra -pedantic")
endif()

add_library(gb_net SHARED
	src/networking.cpp
	src/server_session.cpp
	src/session.cpp
	src/single_tcp_server.cpp
	src/tcp_client.cpp
	src/tcp_server.cpp)