mirror of
https://gitee.com/houstudio/Cdroid.git
synced 2024-12-05 13:48:02 +08:00
27 lines
750 B
CMake
Executable File
27 lines
750 B
CMake
Executable File
cmake_minimum_required (VERSION 3.8)
|
|
project(uidemo1 C CXX)
|
|
|
|
set(CMAKE_CXX_STANDARD 11)
|
|
|
|
include_directories(
|
|
./
|
|
${CDROID_INCLUDE_DIRS}
|
|
${CDROID_DEPINCLUDES}
|
|
${CMAKE_BINARY_DIR}/include
|
|
${CMAKE_BINARY_DIR}/include/gui
|
|
${CMAKE_BINARY_DIR}/include/porting
|
|
)
|
|
aux_source_directory(./ DEMO_SRCS)
|
|
add_definitions(--include cdtypes.h)
|
|
add_definitions(--include cdlog.h)
|
|
link_directories(${CMAKE_BINARY_DIR}/lib)
|
|
add_executable(uidemo1 ${DEMO_SRCS})
|
|
|
|
CreatePAK(uidemo1 ${PROJECT_SOURCE_DIR}/assets ${PROJECT_BINARY_DIR}/uidemo1.pak ${PROJECT_SOURCE_DIR}/R.h)
|
|
|
|
message("CDROID_LIBRARIES=${CDROID_LIBRARIES} CDROID_INCLUDE_DIRS=${CDROID_INCLUDE_DIRS}")
|
|
target_link_libraries(uidemo1 PRIVATE cdroid)
|
|
|
|
install(TARGETS uidemo1 DESTINATION bin)
|
|
|