cmake_minimum_required(VERSION 3.19)
project(FictionalSystem)
set(username $ENV{USERNAME})
#set(CMAKE_CXX_COMPILER "C:/Program Files/JetBrains/CLion 2021.3.3/bin/mingw/bin/g++.exe")
if (WIN32)
if (username MATCHES "Вячеслав")
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
#set(CMAKE_PREFIX_PATH "C:\\Qt\\6.1.3\\mingw81_64\\lib\\cmake")
set(EXECUTABLE_OUTPUT_PATH "..\\..\\..\\release")
endif (username MATCHES "Вячеслав")
message("check")
else()
#set(CMAKE_PREFIX_PATH "~/Qt/6.1.3/mingw81_64/lib/cmake")
endif (WIN32)
set(CMAKE_CXX_STANDARD 17)
set(Qt5_DIR "C:/msys64/mingw64/bin")
set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)
set(CMAKE_AUTORCC ON)
set(CMAKE_AUTOUIC ON)
find_package(Qt5 5.11 COMPONENTS Widgets REQUIRED) # или Qt6
# Build and link
add_library (
PICS
"src/pics/set/pics.h"
"src/pics/set/lbp.h"
)
#add_library (
# NET
#"src/net/templates/algen.h"
#"src/net/countmask.h"
#"src/net/structure/prefim.h"
#"src/net/templates/create_w.h"
#)
add_library(
LEARNING
"src/learning/adaboost.h"
# "src/learning/countmask.h"
# "src/learning/create_w.h"
)
add_library(
STRUCT
"src/struct/algen.h"
"src/struct/prefim.h"
"src/struct/shab.h"
"src/struct/sigmoid.h"
)
add_library(
SRC
"src/learning.h"
"src/net.h"
"src/pics_get.h"
"src/pics_set.h"
)
add_executable(fict main.cpp ${SRC})
target_link_libraries(fict PRIVATE Qt5::Widgets) # или Qt6
#add_executable(fict main.cpp ${SRC})
#target_link_libraries(fict Qt6::Widgets)
#include <QImage>
#include <iostream>
#include <vector>
using namespace std;
vector<int>levelsiz;
int main(int argc, char *argv[]){
cout<<"hello_world\n";
// IOS;
srand(time(NULL));
QImage q; // если закомментировать, то всё прекрасно работает
cout<<"im.active\n";
//vector<int>levelsiz1;
//levelsiz1.push_back(0);
levelsiz.resize(5);
levelsiz[0] = 2;
levelsiz[1] = 16;
levelsiz[2] = 64;
levelsiz[3] = 256;
levelsiz[4] = 1024;
cout << "hehe\n";
// levelsiz[5] = 4096;
//slearn();
//stest();
}