This repository has been archived on 2020-12-30. You can view files and clone it, but cannot push or open issues or pull requests.
2015-12-31 17:46:52 +01:00
|
|
|
cmake_minimum_required(VERSION 2.8.12)
|
|
|
|
project(network_packet_composer)
|
2018-06-02 13:56:15 +02:00
|
|
|
# set(CMAKE_CXX_COMPILER clazy)
|
2018-02-13 15:31:13 +01:00
|
|
|
set(CMAKE_CXX_FLAGS "-std=c++14 -g -Wall")
|
2015-12-31 17:46:52 +01:00
|
|
|
|
|
|
|
# Find includes in corresponding build directories
|
|
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
|
|
# Instruct CMake to run moc automatically when needed.
|
|
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
|
|
|
|
# Find the QtWidgets library
|
|
|
|
find_package(Qt5Widgets)
|
|
|
|
|
|
|
|
add_subdirectory(src)
|
|
|
|
|
2018-01-11 23:20:46 +01:00
|
|
|
add_subdirectory(test)
|
|
|
|
|
2015-12-31 17:46:52 +01:00
|
|
|
add_executable(npc main.cpp)
|
|
|
|
target_link_libraries(npc src)
|
|
|
|
|
2015-12-31 18:52:24 +01:00
|
|
|
qt5_use_modules(npc Widgets)
|