diff options
Diffstat (limited to 'CMakeLists.txt')
| -rw-r--r-- | CMakeLists.txt | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index a1d1b47..ccbc957 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -39,8 +39,11 @@ set(LIBCAMERA_LIBRARIES "${LIBCAMERA_LIBRARY}" "${LIBCAMERA_BASE_LIBRARY}") project(orpheus LANGUAGES CXX) set(CMAKE_CXX_STANDARD_REQUIRED ON) +set(CMAKE_CXX_STANDARD 23) +set(CMAKE_CXX20_STANDARD_COMPILE_OPTION "-std:c++latest") +set(CMAKE_CXX20_EXTENSION_COMPILE_OPTION "-std:c++latest") -find_package(Qt6 6.4 REQUIRED COMPONENTS Quick HttpServer) +find_package(Qt6 6.4 REQUIRED COMPONENTS Quick HttpServer SerialPort) qt_standard_project_setup(REQUIRES 6.4) @@ -61,12 +64,16 @@ qt_add_executable(apporpheus LibCamera.cpp genetic_algos.h genetic_algos.cpp + rotaryencoder.h + rotaryencoder.cpp ) target_link_libraries(app${PROJECT_NAME} PRIVATE "${LIBCAMERA_LIBRARIES}" PkgConfig::Pistache Qt6::HttpServer + Qt6::SerialPort + wiringPi ) include(GNUInstallDirs) @@ -81,3 +88,7 @@ if ("${CMAKE_BUILD_TYPE}" MATCHES "Release") else() #message("it's not Debug") endif() + + +# add_compile_options(-Wall -Wextra -Wpedantic) +add_compile_options(-Ofast -fno-unroll-loops) |
