2016-11-17 19:48:22 +00:00
|
|
|
cmake_minimum_required(VERSION 3.6)
|
|
|
|
project(cpp11NHF2_chat)
|
|
|
|
|
|
|
|
set(CMAKE_CXX_STANDARD 14)
|
|
|
|
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -pedantic")
|
|
|
|
|
2016-12-04 11:52:21 +00:00
|
|
|
find_package(Boost COMPONENTS system REQUIRED)
|
2016-11-17 19:48:22 +00:00
|
|
|
include_directories(${Boost_INCLUDE_DIR})
|
|
|
|
|
2016-12-04 13:00:39 +00:00
|
|
|
set(SOURCE_FILES commandline_chat.cpp chat_messages.hpp chat_networking.hpp)
|
2016-11-17 19:48:22 +00:00
|
|
|
add_executable(cpp11NHF2_chat ${SOURCE_FILES})
|
|
|
|
target_link_libraries(cpp11NHF2_chat ${Boost_LIBRARIES})
|