blob: 2a728081227a2999e34ce51087517a5e4e874036 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
cmake_minimum_required(VERSION 3.15 FATAL_ERROR)
# project name
project(cowgui CXX)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_BUILD_TYPE Debug)
set(CMAKE_CXX_FLAGS_DEBUG "-O0 -g -Wall -Wextra -Werror -Wno-multichar -std=c++11")
set(CMAKE_CXX_FLAGS_RELEASE "-O2 -Wno-multichar -std=c++11")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
file(GLOB COWGUI_SOURCES src/*.cpp)
#file(GLOB_RECURSE COWGUI_MOC_HEADERS src/*.h)
#file(GLOB_RECURSE COWGUI_UIS src/ui/*.ui)
#file(GLOB_RECURSE COWGUI_RESOURCES src/*.qrc)
FIND_PACKAGE(Qt5 COMPONENTS Widgets Network REQUIRED)
#QT5_WRAP_UI(COWGUI_UI_HEADERS ${COWGUI_UIS})
#QT5_WRAP_CPP(COWGUI_MOC_SOURCES ${COWGUI_MOC_HEADERS})
add_executable(cowgui
${COWGUI_SOURCES}
# ${COWGUI_MOC_SOURCES}
# ${COWGUI_UI_HEADERS}
# ${COWGUI_RC_SOURCES}
# ${COWGUI_QMS}
)
target_link_libraries(cowgui
Qt5::Widgets
Qt5::Network
)
install(TARGETS cowgui RUNTIME DESTINATION bin)
|