Last
This commit is contained in:
parent
08e2bb7fb5
commit
426f9e9f24
5
.gitignore
vendored
5
.gitignore
vendored
@ -1,5 +1,4 @@
|
|||||||
build/*
|
build/*
|
||||||
build
|
build
|
||||||
lib/lvgl/*
|
lib/*
|
||||||
lib/lv_drivers/*
|
!lib/testlib .gitignore
|
||||||
lib/testlib .gitignore
|
|
@ -15,6 +15,9 @@ add_compile_definitions(DLV_CONF_PATH="${CMAKE_CURRENT_SOURCE_DIR}/include/lv_co
|
|||||||
add_compile_definitions(DLV_CONF_PATH="${CMAKE_CURRENT_SOURCE_DIR}/include/lv_drv_conf.h")
|
add_compile_definitions(DLV_CONF_PATH="${CMAKE_CURRENT_SOURCE_DIR}/include/lv_drv_conf.h")
|
||||||
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/include/)
|
||||||
|
|
||||||
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/lib/sdl-cmake)
|
||||||
|
|
||||||
|
|
||||||
# set 1 to compile static (Standalone)
|
# set 1 to compile static (Standalone)
|
||||||
set(BIN_STATIC 1)
|
set(BIN_STATIC 1)
|
||||||
|
|
||||||
@ -40,7 +43,6 @@ endif()
|
|||||||
set(SubProjects
|
set(SubProjects
|
||||||
testlib # Example subproject
|
testlib # Example subproject
|
||||||
lvgl
|
lvgl
|
||||||
lv_drivers
|
|
||||||
)
|
)
|
||||||
|
|
||||||
# Create the main executable, specifying the source file
|
# Create the main executable, specifying the source file
|
||||||
@ -62,9 +64,9 @@ foreach(Project IN LISTS SubProjects)
|
|||||||
|
|
||||||
# Link the subproject to the main project executable
|
# Link the subproject to the main project executable
|
||||||
if(BIN_STATIC)
|
if(BIN_STATIC)
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${Project} -static)
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${Project} -static)
|
||||||
else()
|
else()
|
||||||
target_link_libraries(${PROJECT_NAME} PRIVATE ${Project})
|
target_link_libraries(${PROJECT_NAME} PUBLIC ${Project})
|
||||||
endif()
|
endif()
|
||||||
endforeach()
|
endforeach()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user