change
This commit is contained in:
parent
484a2829ab
commit
eee0ca20c7
2
.gitignore
vendored
2
.gitignore
vendored
@ -1,2 +1,4 @@
|
|||||||
build/*
|
build/*
|
||||||
build
|
build
|
||||||
|
lib/lvgl/*
|
||||||
|
lib/testlib .gitignore
|
@ -10,6 +10,10 @@ add_compile_definitions(APP_NAME="${BIN_NAME}")
|
|||||||
add_compile_definitions(MESSAGE="Hello for TESTLIB from cmake.")
|
add_compile_definitions(MESSAGE="Hello for TESTLIB from cmake.")
|
||||||
add_compile_definitions(MAIN_MESSAGE="Hello for main.c from cmake.")
|
add_compile_definitions(MAIN_MESSAGE="Hello for main.c from cmake.")
|
||||||
|
|
||||||
|
# For LVGL
|
||||||
|
add_compile_definitions(DLV_CONF_PATH="${CMAKE_CURRENT_SOURCE_DIR}/include/lv_conf.h")
|
||||||
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||||
|
|
||||||
# set 1 to compile static (Standalone)
|
# set 1 to compile static (Standalone)
|
||||||
set(BIN_STATIC 1)
|
set(BIN_STATIC 1)
|
||||||
|
|
||||||
@ -34,6 +38,7 @@ endif()
|
|||||||
# List of subprojects to include (e.g., external libraries or modules)
|
# List of subprojects to include (e.g., external libraries or modules)
|
||||||
set(SubProjects
|
set(SubProjects
|
||||||
testlib # Example subproject
|
testlib # Example subproject
|
||||||
|
lvgl
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the main executable, specifying the source file
|
# Create the main executable, specifying the source file
|
||||||
@ -60,3 +65,11 @@ foreach(Project IN LISTS SubProjects)
|
|||||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${Project})
|
target_link_libraries(${PROJECT_NAME} PRIVATE ${Project})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
# Add all core's for compiling
|
||||||
|
include(ProcessorCount)
|
||||||
|
ProcessorCount(N)
|
||||||
|
if(NOT N EQUAL 0)
|
||||||
|
set(CTEST_BUILD_FLAGS -j${N})
|
||||||
|
set(ctest_test_args ${PROJECT_NAME} PARALLEL_LEVEL ${N})
|
||||||
|
endif()
|
1317
include/lv_conf.h
Normal file
1317
include/lv_conf.h
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
x
Reference in New Issue
Block a user