Commit f9bf5962 by Karsa Zoltán István

pacth lab01

parent 6de6c8b5
A projekt egy CMake projektet tartalmaz, ami a különféle források fordításának menetét kezeli.
CMake nem fordít, csak generál olyan projekteket, amelyek képesek az adott gépen a megfelelő
fordítóval fordulni.
Használati utasítás:
- Parancssorból:
Parancssorból direktben a CMake program segítéségével kezelhető a projekt, ehhez
be kell lépni a projekt mappájába.
Megjegyzés:
A HSZK-s gépeken ehhez az opcióhoz a "Developer Command Prompt For VS 2019" parancssort
kell használni.
1. A projekt konfigurálása a jelenlegi gépre:
cmake -S . -B _build
2. A projekt fordítása:
cmake --build _build
Megjegyzés:
A CMake által használt "Generátor", azaz az a program, amelyik a tényleges fordítást hajtja végre,
platformfüggő.
Windowson ha talál Visual Studio-t, akkor a Visual Studio-hoz tartozó MSBuild-et fogja
használni, de Linuxon például GNU Make szokott lenni egy jó megoldás.
Ha felül szeretnénk írni ezt a választását, akkor a -G kapcsolóval lehet megtenni.
(A cmake --help parancs kilistázza az összes érvényes generátor nevet.)
- Visual Studio 2019 (HSZK):
Alapvetően biztosítunk a laborhoz egy VS 2019 solution fájlt, ami a HSZK-beli jogosultság problémákat
próbálja orvosolni.
Ennek használatához szimplán a HSZK-VS16 mappában található solution (.sln) fájlt kell megnyitni, és
működni fog a Visual Studio környezet.
Fontos:
Lehetséges, hogy nem a megfelelő projekt kerül kijelölésre alapból, hanem a CMake által generált
`ALL_BUILD'. (Ilyenkor a futtatás nem fog sikerülni.)
Ezt orvoslása a következő:
A jelenlegi projekt kiválasztása > Jobb-click > `Set as startup project'.
A mindenkori laborfeladat a használandó projekt, pl. első labor esetén ez a `nagyobb'.
Visual Studio ilyen néven fog exe-t generálni, a projektből.
Megjegyzés:
Ez egy kézzel módosított CMake által generált solution/projekt fájl, úgyhogy jóval több projekt
jelenik meg benne, mint egy manuálisan készült VS solutionben. Ez nem baj.
- Visual Studio 2019/2022 (Otthoni):
A modernebb Visual Studio verziók képesek natívan kezelni CMake projekteket, nem kell nekik explicite
legenerálni a saját formátumukba a projekt fájlokat.
Ehhez el kell indítani Visual Studio-t és a `File > Open > Folder...` opcióval kiválasztani a
megfelelő mappát (amiben a CMakeLists.txt fájl lakik) és minden megtörténik automatikusan.
Megjegyzés:
A HSZK-ban telepített gépeken ez a megoldás nem fog működni, mert a VS-hez szükséges script
nem rendelkezik elegendő jogosultsággal a Windows Registry módosítására.
- CLion (nincs HSZK-ban):
CLion natívan CMake-t használ projekt kezelésre, egyszerűen csak az `File > Open` menüben meg kell nyitni a
mappát, és a felugró ablakban az OK gombot megnyomni.
- Visual Studio Code:
Visual Studio Code is képes CMake projekteket kezelni, ehhez a `ms-vscode.cpptools-extension-pack'
extensiont kell telepíteni.
1. A mappa megnyitása:
`File > Open Folder...`
2. Megkérdezi, hogy a CMake projektet konfigurálja-e be. Erre 'Igen'-t kell válaszolni, és
kiválasztani a MinGW fordítót.
Megjegyzés:
Saját gépen lehetséges másik fordítókat is használni, a hivatalos Microsoft által
biztosított dokumentáció lépései szerint érdemes ezeket bekonfigurálni.
Akár Windowson, akár UNIX leszármazottakon is ugyan ez a folyamat érvényes, esetleg
érdemes a hivatalos dokumentációt elolvasni.
3. `Ctrl-F5' billentyűvel lehetséges fordítani/debugolni a projektet.
A HSZK-s gépeken ez után a GCC 8.1.0 fordítóval képes fordítani a rendszer, MSVC nem
lett még ellenőrizve.
- Code::Blocks:
Code::Blocks nem képes natívan CMake projekteket kezelni.
A Code::Blocks projektfájlok sajátossága miatt, ezt a fájl és a hozzá tartozó Makefile teljes
elérési útvonalakat tartalmaznak, így nem tudjuk őket előre elkészíteni.
Ehhez a következő parancs használható, abban a mappában, amelyikben a CMakeLists.txt fájl található:
cmake -G "CodeBlocks - MinGW Makefiles" -S. -B CB-Build-Directory
# nagyobb project
#
# Originally created: 2023-02-24.
#
# CMakeLists.txt --
# Elsődleges CMake file a nagyobb projekt fordításához.
# Használat:
# - parancssor: cmake -B _build -S .
# - CLion/Visual Studio: Megnyitni a mappát projektként
# - Code::Blocks:
# 1) cmake -G "CodeBlocks - <1>" -B _build -S .
# - Windows: <1> = MinGW Makefiles
# - Unix: <2> = Unix Makefiles
# 2) A _build/*.cbp fájlt megnyitni
cmake_minimum_required(VERSION 3.18) # Debian Bullseye
cmake_policy(SET CMP0092 NEW)
cmake_policy(SET CMP0077 NEW)
cmake_policy(SET CMP0048 NEW)
include(CheckCXXCompilerFlag)
option(CPP_WARNINGS_TO_ERRORS "Build with -Werror or equivalent flag. [Default: On]" Yes)
project(cpp_labor01
HOMEPAGE_URL "https://git.ik.bme.hu/Prog2/labor_peldak/lab_01"
VERSION 1.0.0
LANGUAGES CXX)
add_executable(nagyobb
nagyobb_main.cpp
fuggvenyeim.cpp)
target_compile_features(nagyobb PRIVATE cxx_std_98)
set_target_properties(nagyobb PROPERTIES
CXX_EXTENSIONS OFF)
if (CPP_WARNINGS_TO_ERRORS)
target_compile_options(nagyobb PRIVATE
$<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-Werror>
$<$<CXX_COMPILER_ID:MSVC>:/WX>)
endif ()
# Generate warning flags appropriate to the currently used compiler.
## CheckWarningFlag(OptionName CacheName) --
#
# Wrapper over check_cxx_compiler_flag that preprocesses the OptionName
# parameter to handle both GCC and MSVC style compiler flags:
# if a compiler flag starts with `/` it is passed as-is to the check,
# otherwise it is prepended with `-W`.
# The result of the flag will be saved to the `HAS_WARNING_${CacheName}`
# CMake cache variable.
function(check_warning_flag OptionName CacheName)
if (OptionName MATCHES [[^/]]) # MSVC-style args are passed as-is
set(WarningPrefix "")
else ()
set(WarningPrefix "-W")
endif ()
check_cxx_compiler_flag("${WarningPrefix}${OptionName}" "HasWarning_${CacheName}")
set("HAS_WARNING_${CacheName}" ${HasWarning_${CacheName}} PARENT_SCOPE)
endfunction()
## generate_warnings(&Target)
#
# Checks a set of warnings and their compatibility with the currently set compiler,
# and sets them for the given Target name's value.
# &Target is the name of the target to set the warnings for.
#
# The warnings are set at the public level.
function(generate_warnings _Target)
set(gw_known_warnings
# GCC/Clang
extra pedantic error=vla error=non-virtual-dtor # error=lifetime
error=trampolines parentheses logical-op reorder c++98-compat
# MSVC
/w14062 # enumerator 'identifier' in a switch of enum 'enumeration' is not handled
/w14242 # 'identifier': conversion from 'type1' to 'type2', possible loss of data
/we4263 # 'function': member function does not override any base class virtual member function
/we4265 # 'class': class has virtual functions, but destructor is not virtual
/w14287 # 'operator': unsigned/negative constant mismatch
/w14296 # 'operator': expression is always false
/we4350 # behavior change: 'member1' called instead of 'member2'
/we4545 # expression before comma evaluates to a function which is missing an argument list
/we4546 # function call before comma missing argument list
/w14547 # 'operator': operator before comma has no effect; expected operator with side-effect
/w14548 # expression before comma has no effect; expected expression with side-effect
/w14549 # 'operator1': operator before comma has no effect; did you intend 'operator2'?
/we4596 # 'identifier': illegal qualified name in member declaration
/w14822 # 'member': local class member function does not have a body
/we4837 # trigraph detected: '??character' replaced by 'character'
/we4928 # illegal copy-initialization; more than one user-defined conversion has been implicitly applied
/we4946 # reinterpret_cast used between related classes: 'class1' and 'class2'
/we4986 # 'symbol': exception specification does not match previous declaration
4
/permissive-
/diagnostics:caret)
# MSVC /Wall turns on **every** warning, like Clang -Weverything
set(gw_found_warnings $<$<CXX_COMPILER_ID:GNU,Clang,AppleClang>:-Wall>)
foreach (warn IN LISTS gw_known_warnings)
string(MAKE_C_IDENTIFIER "${warn}" CacheName)
check_warning_flag("${warn}" ${CacheName})
if (HAS_WARNING_${CacheName})
if (warn MATCHES [[^/]]) # MSVC-style args are passed as-is
set(WarningPrefix "")
else ()
set(WarningPrefix "-W")
endif ()
list(APPEND gw_found_warnings "${WarningPrefix}${warn}")
endif ()
endforeach ()
target_compile_options("${_Target}" PUBLIC ${gw_found_warnings})
endfunction()
generate_warnings(nagyobb)
# CMAKE generated file: DO NOT EDIT!
# Generated by "MinGW Makefiles" Generator, CMake Version 3.26
# Default target executed when no arguments are given to make.
default_target: all
.PHONY : default_target
# Allow only one "make -f Makefile2" at a time, but pass parallelism.
.NOTPARALLEL:
#=============================================================================
# Special targets provided by cmake.
# Disable implicit rules so canonical targets will work.
.SUFFIXES:
# Disable VCS-based implicit rules.
% : %,v
# Disable VCS-based implicit rules.
% : RCS/%
# Disable VCS-based implicit rules.
% : RCS/%,v
# Disable VCS-based implicit rules.
% : SCCS/s.%
# Disable VCS-based implicit rules.
% : s.%
.SUFFIXES: .hpux_make_needs_suffix_list
# Command-line flag to silence nested $(MAKE).
$(VERBOSE)MAKESILENT = -s
#Suppress display of executed commands.
$(VERBOSE).SILENT:
# A target that is always out of date.
cmake_force:
.PHONY : cmake_force
#=============================================================================
# Set environment variables for the build.
SHELL = cmd.exe
# The CMake executable.
CMAKE_COMMAND = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake.exe"
GUI_CMAKE = "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\IDE\CommonExtensions\Microsoft\CMake\CMake\bin\cmake-gui.exe"
# The command to remove a file.
RM = "$(CMAKE_COMMAND)" -E rm -f
# Escaping for special characters.
EQUALS = =
# The top-level source directory on which CMake was run.
CMAKE_SOURCE_DIR = ..
# The top-level build directory on which CMake was run.
CMAKE_BINARY_DIR = ..\HSZK-CB
#=============================================================================
# Targets provided globally by CMake.
# Special rule for the target edit_cache
edit_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..."
"$(GUI_CMAKE)" -G "CodeBlocks - MinGW Makefiles" -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : edit_cache
# Special rule for the target edit_cache
edit_cache/fast: edit_cache
.PHONY : edit_cache/fast
# Special rule for the target rebuild_cache
rebuild_cache:
@$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..."
"$(CMAKE_COMMAND)" --regenerate-during-build -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR)
.PHONY : rebuild_cache
# Special rule for the target rebuild_cache
rebuild_cache/fast: rebuild_cache
.PHONY : rebuild_cache/fast
# The main all target
all: cmake_check_build_system
$(CMAKE_COMMAND) -E cmake_progress_start ..\HSZK-CB\CMakeFiles ..\HSZK-CB\\CMakeFiles\progress.marks
$(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 all
$(CMAKE_COMMAND) -E cmake_progress_start ..\HSZK-CB\CMakeFiles 0
.PHONY : all
# The main clean target
clean:
$(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 clean
.PHONY : clean
# The main clean target
clean/fast: clean
.PHONY : clean/fast
# Prepare targets for installation.
preinstall: all
$(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 preinstall
.PHONY : preinstall
# Prepare targets for installation.
preinstall/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 preinstall
.PHONY : preinstall/fast
# clear depends
depend:
$(CMAKE_COMMAND) -G "CodeBlocks - MinGW Makefiles" -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 1
.PHONY : depend
#=============================================================================
# Target rules for targets named nagyobb
# Build rule for target.
nagyobb: cmake_check_build_system
$(MAKE) $(MAKESILENT) -f CMakeFiles\Makefile2 nagyobb
.PHONY : nagyobb
# fast build rule for target.
nagyobb/fast:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/build
.PHONY : nagyobb/fast
fuggvenyeim.obj: fuggvenyeim.cpp.obj
.PHONY : fuggvenyeim.obj
# target to build an object file
fuggvenyeim.cpp.obj:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/fuggvenyeim.cpp.obj
.PHONY : fuggvenyeim.cpp.obj
fuggvenyeim.i: fuggvenyeim.cpp.i
.PHONY : fuggvenyeim.i
# target to preprocess a source file
fuggvenyeim.cpp.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/fuggvenyeim.cpp.i
.PHONY : fuggvenyeim.cpp.i
fuggvenyeim.s: fuggvenyeim.cpp.s
.PHONY : fuggvenyeim.s
# target to generate assembly for a file
fuggvenyeim.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/fuggvenyeim.cpp.s
.PHONY : fuggvenyeim.cpp.s
nagyobb_main.obj: nagyobb_main.cpp.obj
.PHONY : nagyobb_main.obj
# target to build an object file
nagyobb_main.cpp.obj:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/nagyobb_main.cpp.obj
.PHONY : nagyobb_main.cpp.obj
nagyobb_main.i: nagyobb_main.cpp.i
.PHONY : nagyobb_main.i
# target to preprocess a source file
nagyobb_main.cpp.i:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/nagyobb_main.cpp.i
.PHONY : nagyobb_main.cpp.i
nagyobb_main.s: nagyobb_main.cpp.s
.PHONY : nagyobb_main.s
# target to generate assembly for a file
nagyobb_main.cpp.s:
$(MAKE) $(MAKESILENT) -f CMakeFiles\nagyobb.dir\build.make CMakeFiles/nagyobb.dir/nagyobb_main.cpp.s
.PHONY : nagyobb_main.cpp.s
# Help Target
help:
@echo The following are some of the valid targets for this Makefile:
@echo ... all (the default if no target is provided)
@echo ... clean
@echo ... depend
@echo ... edit_cache
@echo ... rebuild_cache
@echo ... nagyobb
@echo ... fuggvenyeim.obj
@echo ... fuggvenyeim.i
@echo ... fuggvenyeim.s
@echo ... nagyobb_main.obj
@echo ... nagyobb_main.i
@echo ... nagyobb_main.s
.PHONY : help
#=============================================================================
# Special targets to cleanup operation of make.
# Special rule to run CMake to check the build system integrity.
# No rule that depends on this can have commands that come from listfiles
# because they might be regenerated.
cmake_check_build_system:
$(CMAKE_COMMAND) -G "CodeBlocks - MinGW Makefiles" -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles\Makefile.cmake 0
.PHONY : cmake_check_build_system
<?xml version="1.0" encoding="UTF-8"?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6"/>
<Project>
<Option title="cpp_labor01"/>
<Option makefile_is_custom="1"/>
<Option compiler="gcc"/>
<Option virtualFolders="CMake Files\;"/>
<Build>
<Target title="all">
<Option working_dir="../HSZK-CB"/>
<Option type="4"/>
<MakeCommands>
<Build command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 all"/>
<CompileFile command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="nagyobb">
<Option output="../HSZK-CB/nagyobb.exe" prefix_auto="0" extension_auto="0"/>
<Option working_dir="../HSZK-CB"/>
<Option object_output="./"/>
<Option type="1"/>
<Option compiler="gcc"/>
<Compiler>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"/>
</Compiler>
<MakeCommands>
<Build command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 nagyobb"/>
<CompileFile command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="nagyobb/fast">
<Option output="../HSZK-CB/nagyobb.exe" prefix_auto="0" extension_auto="0"/>
<Option working_dir="../HSZK-CB"/>
<Option object_output="./"/>
<Option type="1"/>
<Option compiler="gcc"/>
<Compiler>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/x86_64-w64-mingw32"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include/c++/backward"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/include-fixed"/>
<Add directory="C:/Program Files/CodeBlocks/MinGW/bin/../lib/gcc/x86_64-w64-mingw32/8.1.0/../../../../x86_64-w64-mingw32/include"/>
</Compiler>
<MakeCommands>
<Build command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 nagyobb/fast"/>
<CompileFile command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="edit_cache">
<Option working_dir="../HSZK-CB"/>
<Option type="4"/>
<MakeCommands>
<Build command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 edit_cache"/>
<CompileFile command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands>
</Target>
<Target title="rebuild_cache">
<Option working_dir="../HSZK-CB"/>
<Option type="4"/>
<MakeCommands>
<Build command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 rebuild_cache"/>
<CompileFile command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 &quot;$file&quot;"/>
<Clean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
<DistClean command="C:/Program Files/CodeBlocks/MinGW/bin/mingw32-make.exe -f &quot;../HSZK-CB/Makefile&quot; VERBOSE=1 clean"/>
</MakeCommands>
</Target>
</Build>
<Unit filename="../fuggvenyeim.cpp">
<Option target="nagyobb"/>
</Unit>
<Unit filename="../fuggvenyeim.h">
<Option target="nagyobb"/>
</Unit>
<Unit filename="../nagyobb_main.cpp">
<Option target="nagyobb"/>
</Unit>
<Unit filename="../CMakeLists.txt">
<Option virtualFolder="CMake Files\"/>
</Unit>
</Project>
</CodeBlocks_project_file>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<CustomBuild Include="$(ProjectDir)\..\CMakeLists.txt" />
</ItemGroup>
<ItemGroup>
</ItemGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
\ No newline at end of file
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<CustomBuild Include="$(ProjectDir)\CMakeFiles\7d0009ad09d3ad7e71bed2c61422ea79\generate.stamp.rule">
<Filter>CMake Rules</Filter>
</CustomBuild>
</ItemGroup>
<ItemGroup>
<Filter Include="CMake Rules">
<UniqueIdentifier>{CA8E76FC-AFB1-3D6A-B86A-CFC44BCE03F9}</UniqueIdentifier>
</Filter>
</ItemGroup>
</Project>

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ALL_BUILD", "ALL_BUILD.vcxproj", "{467A187C-0091-3283-B535-6E1AF251BF3B}"
ProjectSection(ProjectDependencies) = postProject
{786D8844-5CEB-3196-9843-02D5F99388D7} = {786D8844-5CEB-3196-9843-02D5F99388D7}
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7} = {DE4CEF33-D69A-3C11-800D-A33A3535D8C7}
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "ZERO_CHECK", "ZERO_CHECK.vcxproj", "{786D8844-5CEB-3196-9843-02D5F99388D7}"
ProjectSection(ProjectDependencies) = postProject
EndProjectSection
EndProject
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nagyobb", "nagyobb.vcxproj", "{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}"
ProjectSection(ProjectDependencies) = postProject
{786D8844-5CEB-3196-9843-02D5F99388D7} = {786D8844-5CEB-3196-9843-02D5F99388D7}
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Release|x64 = Release|x64
MinSizeRel|x64 = MinSizeRel|x64
RelWithDebInfo|x64 = RelWithDebInfo|x64
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{467A187C-0091-3283-B535-6E1AF251BF3B}.Debug|x64.ActiveCfg = Debug|x64
{467A187C-0091-3283-B535-6E1AF251BF3B}.Release|x64.ActiveCfg = Release|x64
{467A187C-0091-3283-B535-6E1AF251BF3B}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
{467A187C-0091-3283-B535-6E1AF251BF3B}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.Debug|x64.ActiveCfg = Debug|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.Debug|x64.Build.0 = Debug|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.Release|x64.ActiveCfg = Release|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.Release|x64.Build.0 = Release|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.MinSizeRel|x64.Build.0 = MinSizeRel|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
{786D8844-5CEB-3196-9843-02D5F99388D7}.RelWithDebInfo|x64.Build.0 = RelWithDebInfo|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.Debug|x64.ActiveCfg = Debug|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.Debug|x64.Build.0 = Debug|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.Release|x64.ActiveCfg = Release|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.Release|x64.Build.0 = Release|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.MinSizeRel|x64.ActiveCfg = MinSizeRel|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.MinSizeRel|x64.Build.0 = MinSizeRel|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.RelWithDebInfo|x64.ActiveCfg = RelWithDebInfo|x64
{DE4CEF33-D69A-3C11-800D-A33A3535D8C7}.RelWithDebInfo|x64.Build.0 = RelWithDebInfo|x64
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {FD5A2386-96E4-3127-8B0F-300199D84B08}
EndGlobalSection
GlobalSection(ExtensibilityAddIns) = postSolution
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="16.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup>
<ClCompile Include="$(ProjectDir)\..\nagyobb_main.cpp">
<Filter>Source Files</Filter>
</ClCompile>
<ClCompile Include="$(ProjectDir)\..\fuggvenyeim.cpp">
<Filter>Source Files</Filter>
</ClCompile>
</ItemGroup>
<ItemGroup>
<ClInclude Include="$(ProjectDir)\..\fuggvenyeim.h">
<Filter>Header Files</Filter>
</ClInclude>
</ItemGroup>
<ItemGroup>
<CustomBuild Include="$(ProjectDir)\..\CMakeLists.txt" />
</ItemGroup>
<ItemGroup>
<Filter Include="Header Files">
<UniqueIdentifier>{65D0F03B-02DC-3485-ACA3-8A31C0BC5D51}</UniqueIdentifier>
</Filter>
<Filter Include="Source Files">
<UniqueIdentifier>{802FD31A-BB45-3C50-B635-6870BC5B5182}</UniqueIdentifier>
</Filter>
</ItemGroup>
</Project>
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup />
</Project>
\ No newline at end of file
#
# Demo Makefile a nagyobb program eloallitasahoz
#
PROG = nagyobb
SRCS = nagyobb_main.cpp fuggvenyeim.cpp
HDRS = fuggvenyeim.h
OBJS = $(SRCS:.cpp=.o)
CXXFLAGS = -g -Wall
$(PROG): $(OBJS)
$(CXX) -o $(PROG) $(OBJS)
.PHONY:
clean:
rm -f $(OBJS) $(PROG)
# Egyszerusites: Minden .o fugg minden header-tol
$(OBJS): $(HDRS)
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<CodeBlocks_project_file>
<FileVersion major="1" minor="6" />
<Project>
<Option title="if" />
<Option pch_mode="2" />
<Option compiler="gcc" />
<Build>
<Target title="Debug">
<Option output="bin/Debug/if" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Debug/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-g" />
</Compiler>
</Target>
<Target title="Release">
<Option output="bin/Release/if" prefix_auto="1" extension_auto="1" />
<Option object_output="obj/Release/" />
<Option type="1" />
<Option compiler="gcc" />
<Compiler>
<Add option="-O2" />
</Compiler>
<Linker>
<Add option="-s" />
</Linker>
</Target>
</Build>
<Compiler>
<Add option="-Wall" />
<Add option="-fexceptions" />
</Compiler>
<Unit filename="fuggvenyeim.cpp" />
<Unit filename="fuggvenyeim.h" />
<Unit filename="nagyobb_main.cpp" />
<Extensions>
<code_completion />
<envvars />
<debugger />
<lib_finder disable_auto="1" />
</Extensions>
</Project>
</CodeBlocks_project_file>

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 15
VisualStudioVersion = 15.0.27004.2005
MinimumVisualStudioVersion = 10.0.40219.1
Project("{8BC9CEB8-8B4A-11D0-8D11-00A0C91BC942}") = "nagyobb", "nagyobb.vcxproj", "{771497AB-BC58-46A4-96A3-5200F8C2EFF5}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|x64 = Debug|x64
Debug|x86 = Debug|x86
Release|x64 = Release|x64
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Debug|x64.ActiveCfg = Debug|x64
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Debug|x64.Build.0 = Debug|x64
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Debug|x86.ActiveCfg = Debug|Win32
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Debug|x86.Build.0 = Debug|Win32
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Release|x64.ActiveCfg = Release|x64
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Release|x64.Build.0 = Release|x64
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Release|x86.ActiveCfg = Release|Win32
{771497AB-BC58-46A4-96A3-5200F8C2EFF5}.Release|x86.Build.0 = Release|Win32
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {43E7D6B0-6442-4F99-AC42-5DF9DBB44C7B}
EndGlobalSection
EndGlobal
<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<ItemGroup Label="ProjectConfigurations">
<ProjectConfiguration Include="Debug|Win32">
<Configuration>Debug</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|Win32">
<Configuration>Release</Configuration>
<Platform>Win32</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Debug|x64">
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
<ProjectConfiguration Include="Release|x64">
<Configuration>Release</Configuration>
<Platform>x64</Platform>
</ProjectConfiguration>
</ItemGroup>
<PropertyGroup Label="Globals">
<VCProjectVersion>15.0</VCProjectVersion>
<ProjectGuid>{771497AB-BC58-46A4-96A3-5200F8C2EFF5}</ProjectGuid>
<WindowsTargetPlatformVersion>10.0.16299.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|Win32'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>true</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'" Label="Configuration">
<ConfigurationType>Application</ConfigurationType>
<UseDebugLibraries>false</UseDebugLibraries>
<PlatformToolset>v141</PlatformToolset>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.props" />
<ImportGroup Label="ExtensionSettings">
</ImportGroup>
<ImportGroup Label="Shared">
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|Win32'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Debug|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<ImportGroup Label="PropertySheets" Condition="'$(Configuration)|$(Platform)'=='Release|x64'">
<Import Project="$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props" Condition="exists('$(UserRootDir)\Microsoft.Cpp.$(Platform).user.props')" Label="LocalAppDataPlatform" />
</ImportGroup>
<PropertyGroup Label="UserMacros" />
<PropertyGroup />
<ItemDefinitionGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'">
<Link>
<SubSystem>Console</SubSystem>
</Link>
</ItemDefinitionGroup>
<ItemGroup>
<ClCompile Include="fuggvenyeim.cpp" />
<ClCompile Include="nagyobb_main.cpp" />
</ItemGroup>
<ItemGroup>
<ClInclude Include="fuggvenyeim.h" />
</ItemGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.targets" />
<ImportGroup Label="ExtensionTargets">
</ImportGroup>
</Project>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment