Files
CMake/Tests/GhsMulti/GhsMultiDuplicateSourceFilenames/CMakeLists.txt
T
Fred Baksik 21ab58d3f8 GHS: Update test suite
-- Allow for testing default toolset settings
   If CMake_TEST_GreenHillsMULTI_config is not defined then
   just run the GHS tests using defaults.
-- Handle paths that contain spaces
-- Update test suite to use "-non_shared" linker option
   Fixes linking issue if GHS is not shipped with shared libraries
-- Other minor cleanup
2019-01-16 10:42:08 -05:00

18 lines
343 B
CMake

cmake_minimum_required(VERSION 3.5)
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()