summaryrefslogblamecommitdiffstats
path: root/CMakeLists.txt
blob: 2a728081227a2999e34ce51087517a5e4e874036 (plain) (tree)






































                                                                                   
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)