24 lines
544 B
CMake
24 lines
544 B
CMake
cmake_minimum_required(VERSION 2.8.12)
|
|
project(network_packet_composer)
|
|
# set(CMAKE_CXX_COMPILER clazy)
|
|
set(CMAKE_CXX_FLAGS "-std=c++14 -g -Wall")
|
|
|
|
# Find includes in corresponding build directories
|
|
set(CMAKE_INCLUDE_CURRENT_DIR ON)
|
|
# Instruct CMake to run moc automatically when needed.
|
|
set(CMAKE_AUTOMOC ON)
|
|
|
|
set( CMAKE_EXPORT_COMPILE_COMMANDS ON )
|
|
|
|
# Find the QtWidgets library
|
|
find_package(Qt5Widgets)
|
|
|
|
add_subdirectory(src)
|
|
|
|
add_subdirectory(test)
|
|
|
|
add_executable(npc main.cpp)
|
|
target_link_libraries(npc src)
|
|
|
|
qt5_use_modules(npc Widgets)
|