Files
CMake/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt
T

18 lines
344 B
CMake

cmake_minimum_required(VERSION 3.10)
project(test C)
add_library(libdemo
test.c
testCase.c
subfolder_test.c
subfolder_test_0.c
"subfolder/test.c"
subfolder/testcase.c
)
add_executable(demo main.c)
target_link_libraries(demo libdemo)
if(CMAKE_C_COMPILER_ID STREQUAL "GHS")
target_link_options(demo PRIVATE "-non_shared")
endif()