29 lines
581 B
CMake
29 lines
581 B
CMake
|
cmake_minimum_required(VERSION 2.8.12)
|
||
|
project(network_packet_composer)
|
||
|
|
||
|
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)
|
||
|
|
||
|
|
||
|
|
||
|
# Find the QtWidgets library
|
||
|
find_package(Qt5Core)
|
||
|
find_package(Qt5Widgets)
|
||
|
find_package(Qt5Gui)
|
||
|
|
||
|
|
||
|
add_subdirectory(src)
|
||
|
|
||
|
add_executable(npc main.cpp)
|
||
|
target_link_libraries(npc src)
|
||
|
|
||
|
target_link_libraries(npc Qt5::Widgets)
|
||
|
target_link_libraries(npc Qt5::Core)
|
||
|
target_link_libraries(npc Qt5::Gui)
|
||
|
|