elfs-examples/hello-world-cpp/CMakeLists.txt
2026-09-17 16:07:35 +03:00

21 lines
433 B
CMake

cmake_minimum_required(VERSION 3.31)
set(CXX_TYPE uclibc++)
include(../../sdk/config.cmake)
project(hello_world_cpp CXX)
set(CMAKE_CXX_STANDARD 11)
foreach(platform ELKA NSG X75 SG)
set(target "hello-world_${platform}")
add_executable("${target}" main.cpp TestClass.cpp)
target_link_libraries("${target}" PRIVATE
crt
crt_helper
gcc
c
stdc++-1.2.2
supc++
)
target_sdk_setup("${target}" "${platform}")
endforeach()