summaryrefslogtreecommitdiffstats
path: root/Tests/GhsMultiDuplicateSourceFilenames/CMakeLists.txt
blob: ffdb5827f58e8b316d3af6dfae37593e5b16bbb4 (plain)
1
2
3
4
5
6
7
8
9
10
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()