You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
343 B
18 lines
343 B
9 years ago
|
cmake_minimum_required(VERSION 3.5)
|
||
5 years ago
|
project(test C)
|
||
9 years ago
|
|
||
|
add_library(libdemo
|
||
|
test.c
|
||
5 years ago
|
testCase.c
|
||
9 years ago
|
subfolder_test.c
|
||
|
subfolder_test_0.c
|
||
|
"subfolder/test.c"
|
||
5 years ago
|
subfolder/testcase.c
|
||
9 years ago
|
)
|
||
|
|
||
|
add_executable(demo main.c)
|
||
|
target_link_libraries(demo libdemo)
|
||
5 years ago
|
if(CMAKE_C_COMPILER_ID STREQUAL "GHS")
|
||
|
target_link_options(demo PRIVATE "-non_shared")
|
||
9 years ago
|
endif()
|