1703a6d2c4
Green Hills MULTI project files must specify explicitly distinct object file names for source files with the same name.
11 lines
238 B
CMake
11 lines
238 B
CMake
cmake_minimum_required(VERSION 3.5)
|
|
project(demo C)
|
|
|
|
add_library(libdemo test.c subfolder/test.c)
|
|
|
|
add_executable(demo main.c)
|
|
target_link_libraries(demo libdemo)
|
|
if(GHSMULTI)
|
|
target_compile_options(demo PUBLIC "-non_shared")
|
|
endif()
|