s20/CMakeLists.txt

18 lines
476 B
CMake
Raw Normal View History

2015-01-11 00:17:06 +00:00
cmake_minimum_required(VERSION 2.8)
project(s20)
# Find includes in corresponding build directories
set(CMAKE_INCLUDE_CURRENT_DIR ON)
# Instruct CMake to run moc automatically when needed.
2015-01-13 17:34:28 +00:00
# set(CMAKE_AUTOMOC OFF)
SET(CMAKE_CXX_FLAGS "-std=gnu++11")
2015-01-11 00:17:06 +00:00
# Find the QtWidgets library
2015-01-13 17:43:53 +00:00
find_package(Qt5 REQUIRED Core Network)
2015-01-11 00:17:06 +00:00
# Tell CMake to create the helloworld executable
add_executable(s20 s20.cpp)
# Use the Widgets module from Qt 5.
2015-01-13 17:43:53 +00:00
target_link_libraries(s20 Qt5::Network)