Compare commits

..

12 Commits

Author SHA1 Message Date
fshstk cf06a21160 Add Gitlab CI script 2022-10-12 15:22:37 +02:00
fshstk 6471b1e066 Clean up CMakeLists
- Remove redundant libraries
- Change compile definitions to CMake variables
2022-10-12 15:21:51 +02:00
fshstk 7d7a7d24a2 Remove Qt .pro file
CMakeLists.txt now does everything we need
2022-10-12 14:56:16 +02:00
fshstk 2c1a3692e7 Update building.md
- Add info about installing cmake
- Change build instructions from qmake to cmake
- Remove info about installing deps
  We don't need to do this anymore. CMake will do it automatically at
  configure-time!
2022-10-12 14:56:16 +02:00
fshstk 30e16d80d9 Add libsndfile dependency 2022-10-12 14:56:16 +02:00
fshstk 2743caa02a Add portaudio dependency 2022-10-12 14:56:16 +02:00
fshstk 572d6a127c Add liblo dependency 2022-10-12 14:56:16 +02:00
fshstk 6aa25397de Add fftw3 dependency 2022-10-12 14:56:16 +02:00
fshstk 55e5427ec4 Fix path to .ui files 2022-10-12 14:56:16 +02:00
fshstk c2e923bcee Ignore build folder
This should cover all files generated by the build system...
2022-10-12 14:56:16 +02:00
fshstk ddf7f8538a Fix CMakeLists syntax
target_compile_options requires the PUBLIC/PRIVATE keyword. I don't know
why the qmake2cmake script doesn't provide the correct syntax here...
2022-10-12 14:56:16 +02:00
fshstk 1dc55a982c Run qmake2cmake command
Command used:
qmake2cmake_all . --min-qt-version 6.2.4
2022-10-12 14:56:07 +02:00
2 changed files with 13 additions and 17 deletions

10
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,10 @@
build-job:
stage: build
image: ubuntu:22.04
script:
- apt-get update
- apt-get install -y git cmake g++ freeglut3-dev qt6-base-dev
- mkdir -p build
- cd build
- cmake ..
- cmake --build .

View File

@ -12,6 +12,9 @@ set(CMAKE_AUTOMOC ON)
include(GNUInstallDirs)
set(CMAKE_AUTOUIC ON)
set(CMAKE_CXX_STANDARD 11)
set(CMAKE_CXX_STANDARD_REQUIRED ON)
find_package(QT NAMES Qt5 Qt6 REQUIRED COMPONENTS Core)
find_package(Qt${QT_VERSION_MAJOR} REQUIRED COMPONENTS Gui Widgets)
@ -48,36 +51,19 @@ qt_add_executable(samplebrain WIN32 MACOSX_BUNDLE
)
target_include_directories(samplebrain PRIVATE
.
/opt/homebrew/include
/usr/local/include
2
brain/src
)
target_link_libraries(samplebrain PRIVATE
# Remove: L..
# Remove: L/opt/homebrew/lib
# Remove: L/usr/local/lib
Qt::Core
Qt::Gui
Qt::Widgets
dl
fftw3
lo_shared
m
portaudio
pthread
sndfile
)
target_compile_options(samplebrain PUBLIC
-O3
-Wall
-Wno-unused
-std=c++11
)
# Resources:
set(samplebrain_resource_files
"app/images/at.png"