Skip to content

Commit 5f11856

Browse files
Changed project structure to support standalone and component use case
1 parent acc025d commit 5f11856

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+4932
-291
lines changed

CMakeLists.txt

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,25 @@
1-
cmake_minimum_required(VERSION 3.12)
1+
idf_component_register(SRCS
2+
"src/Profiler.cpp"
3+
"src/Renderer.cpp"
4+
"src/Utils.cpp"
5+
"src/Texture.cpp"
6+
"src/Collider.cpp"
7+
"src/Font.cpp"
8+
"src/Shapes/Shape.cpp"
9+
"src/Shapes/Circle.cpp"
10+
"src/Shapes/Rectangle.cpp"
11+
"src/Shapes/Polygon.cpp"
12+
"src/Shapes/LineSegment.cpp"
13+
"src/Shapes/Point.cpp"
14+
"src/Shapes/RegularPolygon.cpp"
15+
"src/Shapes/Collection.cpp"
16+
INCLUDE_DIRS
17+
"include"
18+
"include/Shapes"
19+
"include/examples"
20+
"include/Font"
21+
PRIV_REQUIRES esp_timer perfmon)
222

3-
include($ENV{IDF_PATH}/tools/cmake/project.cmake)
4-
project(cpp-renderer)
23+
target_compile_options(${COMPONENT_LIB} PRIVATE
24+
-Wno-narrowing
25+
-Wno-error=narrowing)

0 commit comments

Comments
 (0)