<commit_before>cmake_minimum_required(VERSION 2.8.11)
project(tif_viewer)

set(CMAKE_CXX_STANDARD 14)

set(SOURCE_FILES main.cpp image/parser/parser.cpp gui.cpp gui.hpp renderer/renderer.cpp renderer/renderer.hpp image/image.cpp gui_unit.cpp gui_unit.hpp)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

find_package(Qt5 REQUIRED COMPONENTS Core Widgets OpenGL)
include_directories(${Qt5_INCLUDES})
add_definitions(${Qt5_DEFINITIONS})

set(CMAKE_CXX_FLAGS "${Qt5_EXECUTABLE_COMPILE_FLAGS}")

INCLUDE_DIRECTORIES(D:/libs/gdalwin32-1.4.1/include/)
link_directories(D:/libs/gdal-220/lib)

find_package(OpenGL REQUIRED)

include_directories(${OPENGL_INCLUDE_DIRS})

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

#qt5_use_modules(${PROJECT_NAME} Widgets Core OpenGL)

target_link_libraries(${PROJECT_NAME} gdal_i Qt5::Core Qt5::Widgets Qt5::OpenGL)
target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES})<commit_msg>add linux buid support<commit_after>cmake_minimum_required(VERSION 2.8.11)
project(tif_viewer)

set(CMAKE_CXX_STANDARD 14)

set(SOURCE_FILES main.cpp image/parser/parser.cpp gui.cpp gui.hpp renderer/renderer.cpp renderer/renderer.hpp image/image.cpp gui_unit.cpp gui_unit.hpp)

set(CMAKE_INCLUDE_CURRENT_DIR ON)
set(CMAKE_AUTOMOC ON)

find_package(Qt5 REQUIRED COMPONENTS Core Widgets OpenGL)
include_directories(${Qt5_INCLUDES})
add_definitions(${Qt5_DEFINITIONS})

set(CMAKE_CXX_FLAGS "${Qt5_EXECUTABLE_COMPILE_FLAGS}")

if (WIN32)
    INCLUDE_DIRECTORIES(D:/libs/gdalwin32-1.4.1/include/)
    link_directories(D:/libs/gdal-220/lib)
endif(WIN32)

if (UNIX)
    INCLUDE_DIRECTORIES(/usr/include/gdal)
    link_directories(/usr/lib)
endif(UNIX)

find_package(OpenGL REQUIRED)

include_directories(${OPENGL_INCLUDE_DIRS})

add_executable(${PROJECT_NAME} ${SOURCE_FILES})

target_link_libraries(${PROJECT_NAME} ${OPENGL_LIBRARIES} Qt5::Core Qt5::Widgets Qt5::OpenGL)

if (WIN32)
    target_link_libraries(${PROJECT_NAME} gdal_i)
elseif(UNIX)
    target_link_libraries(${PROJECT_NAME} gdal)
endif()

target_link_libraries(${PROJECT_NAME} )
{'fraction_non_alphanumeric': 0.11682016480853126, 'fraction_numerical': 0.02375181774115366, 'mean_word_length': 8.6, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3164362', 'n_tokens_mistral': 882, 'n_tokens_neox': 819, 'n_words': 107}