2022. 8. 30. 21:00ㆍ03. Resources/C, C++
예시 프로젝트 만들어보기
C++는 CMakeFiles를 작성하는게 꽤나 번거로운 작업이라 예시 링크를 보고 프로젝트를 하나 만들어뒀다.
참고한 링크: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html
C++ project setup with CMake & unit tests (google test) - Raymii.org
This guide will show you how to setup a new C++ project with CMake and unit tests via Google's test framework. With this setup you can get started right away with test-driven-development in C++. It is also simple enough to look and figure out how to add gt
raymii.org
참고 링크를 바탕으로 내가 보려고 레포
https://github.com/SunandBean/gtest_example
GitHub - SunandBean/gtest_example: Reference: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html
Reference: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmake_and_unit_tests.html - GitHub - SunandBean/gtest_example: Reference: https://raymii.org/s/tutorials/Cpp_project_setup_with_cmak...
github.com
결과

이 기본 프레임워크를 이용해서 여러가지 변형을 해봐야겠다.
앞으로 tdd 개념을 이용해서 코드를 작성할 때 해당 레포를 참고해서 진행해야지!
'03. Resources > C, C++' 카테고리의 다른 글
[C/C++] vcpkg로 C++ 라이브러리 관리 쉽게 하기 (0) | 2022.12.23 |
---|---|
[TDD/C++] C++로 실습하는 Test-Driven Development - GoogleTest를 이용한 TDD (0) | 2022.08.29 |
[TDD/C++] C++로 실습하는 Test-Driven Development - TDD란? (0) | 2022.08.28 |
[C++ 스터디] LeetCode 코딩 테스트 문제 풀어보기! - Roman to Integer (0) | 2022.08.15 |
[C++/CMake] CMakeLists로 C++ 편하게(?) 컴파일 하기 (0) | 2022.07.28 |