diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index 83ef86c..e07bf77 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -7,7 +7,7 @@ include_guard(GLOBAL) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) -set(CMAKE_AUTORCC ON) +set(CMAKE_AUTORCC OFF) set(CMAKE_SYSTEM_NAME Linux) set(CMAKE_SYSTEM_PROCESSOR arm) @@ -32,6 +32,7 @@ set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}") # ...../rpi-sysroot/usr/lib/qt6/libexec/moc: error while loading shared libraries: # libpcre2-16.so.0: cannot open shared object file: No such file or directory # +# export this path for qtcreator: # LD_LIBRARY_PATH=/home/nikita/rpi/rpi-sysroot/usr/lib/aarch64-linux-gnu/:$LD_LIBRARY_PATH set(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) set(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) @@ -59,6 +60,8 @@ set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION "-std:c++latest") find_package(Qt6 6.4 REQUIRED COMPONENTS Quick HttpServer SerialPort) +find_package(TBB REQUIRED) + qt_standard_project_setup(REQUIRES 6.4) include_directories(. "${CAMERA_INCLUDE_DIRS}") @@ -82,6 +85,7 @@ qt_add_executable(apporpheus rotaryencoder.cpp printerclient.h printerclient.cpp + fuck_intel.h ) target_link_libraries(app${PROJECT_NAME} PRIVATE @@ -90,6 +94,7 @@ target_link_libraries(app${PROJECT_NAME} Qt6::HttpServer Qt6::SerialPort wiringPi + TBB::tbb ) include(GNUInstallDirs) @@ -107,4 +112,4 @@ endif() # add_compile_options(-Wall -Wextra -Wpedantic) -add_compile_options(-Ofast -fno-unroll-loops) +add_compile_options(-Ofast -fno-unroll-loops -Wall) |
