diff options
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r-- | CMakeLists.txt | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt new file mode 100644 index 0000000..2a72808 --- /dev/null +++ b/CMakeLists.txt @@ -0,0 +1,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) |