18 lines
343 B
CMake
Raw Normal View History

2016-07-09 11:21:54 +02:00
cmake_minimum_required(VERSION 3.5)
2019-11-11 23:01:05 +01:00
project(test C)
2016-07-09 11:21:54 +02:00
add_library(libdemo
test.c
2019-11-11 23:01:05 +01:00
testCase.c
2016-07-09 11:21:54 +02:00
subfolder_test.c
subfolder_test_0.c
"subfolder/test.c"
2019-11-11 23:01:05 +01:00
subfolder/testcase.c
2016-07-09 11:21:54 +02:00
)
add_executable(demo main.c)
target_link_libraries(demo libdemo)
2019-11-11 23:01:05 +01:00
if(CMAKE_C_COMPILER_ID STREQUAL "GHS")
target_link_options(demo PRIVATE "-non_shared")
2016-07-09 11:21:54 +02:00
endif()