Test
This commit is contained in:
parent
3497b97f6e
commit
9f734ee228
|
@ -0,0 +1,20 @@
|
||||||
|
name: Build Test
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
pull_request:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
Ubuntu:
|
||||||
|
runs-on: ubuntu-lates
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@latest
|
||||||
|
|
||||||
|
- name: Install Qt
|
||||||
|
uses: jurplel/install-qt-action@v2
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
# CMake build files
|
# CMake build files
|
||||||
**/cmake-build-debug/**
|
**/cmake-build-debug/**
|
||||||
|
**/build/**
|
||||||
|
|
||||||
# C++ objects and libs
|
# C++ objects and libs
|
||||||
*.slo
|
*.slo
|
||||||
|
@ -35,7 +36,7 @@ ui_*.h
|
||||||
*.qmlc
|
*.qmlc
|
||||||
*.jsc
|
*.jsc
|
||||||
Makefile*
|
Makefile*
|
||||||
*build-*
|
/*build-*
|
||||||
*.qm
|
*.qm
|
||||||
*.prl
|
*.prl
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,9 @@ set(CMAKE_AUTORCC ON)
|
||||||
set(CMAKE_CXX_STANDARD 11)
|
set(CMAKE_CXX_STANDARD 11)
|
||||||
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
||||||
|
|
||||||
#find_package(QT NAMES Qt6 COMPONENTS Widgets REQUIRED)
|
# For CLion builds, point CMAKE_PREFIX_PATH to Qt6 install directory
|
||||||
find_package(Qt6 COMPONENTS Widgets OpenGLWidgets OpenGL REQUIRED)
|
list(APPEND CMAKE_PREFIX_PATH /home/kapper/Code/Clones/Qt6.2/6.2.3/gcc_64/)
|
||||||
|
find_package(Qt6 COMPONENTS OpenGLWidgets REQUIRED)
|
||||||
|
|
||||||
# Add our Qt resources.qrc file to our application
|
# Add our Qt resources.qrc file to our application
|
||||||
set(SOURCES app/main.cpp)
|
set(SOURCES app/main.cpp)
|
||||||
|
@ -35,10 +36,6 @@ add_executable(
|
||||||
# External Libraries
|
# External Libraries
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
||||||
# Find and link OpenGL package; Otherwise show an error
|
|
||||||
set(OpenGL_GL_PREFERENCE LEGACY)
|
|
||||||
find_package(OpenGL REQUIRED)
|
|
||||||
|
|
||||||
# https://github.com/assimp/assimp/commit/6ac8279977c3a54118551e549d77329497116f66
|
# https://github.com/assimp/assimp/commit/6ac8279977c3a54118551e549d77329497116f66
|
||||||
find_package(assimp REQUIRED)
|
find_package(assimp REQUIRED)
|
||||||
|
|
||||||
|
@ -65,10 +62,7 @@ add_library(main-widget SHARED
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(main-widget PUBLIC src/)
|
target_include_directories(main-widget PUBLIC src/)
|
||||||
target_include_directories(main-widget PRIVATE ${OPENGL_INCLUDE_DIR})
|
|
||||||
target_link_libraries(main-widget PRIVATE ${OPENGL_LIBRARIES})
|
|
||||||
target_link_libraries(main-widget PRIVATE assimp)
|
target_link_libraries(main-widget PRIVATE assimp)
|
||||||
target_link_libraries(main-widget PUBLIC Qt${QT_VERSION_MAJOR}::Widgets)
|
|
||||||
target_link_libraries(main-widget PUBLIC Qt${QT_VERSION_MAJOR}::OpenGLWidgets)
|
target_link_libraries(main-widget PUBLIC Qt${QT_VERSION_MAJOR}::OpenGLWidgets)
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
|
Loading…
Reference in New Issue