You cannot 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
524 B
CMake
18 lines
524 B
CMake
cmake_minimum_required(VERSION 3.2)
|
|
project(test_cxx_runtime)
|
|
|
|
add_executable(test_cxx_runtime typeinfo_test.cc)
|
|
add_executable(test_cxx_stdlib typeinfo_test.cc)
|
|
if (CXX_RUNTIME)
|
|
if (CXX_RUNTIME MATCHES ".*libc\\+\\+abi.*")
|
|
find_library(M_LIBRARY m)
|
|
if (M_LIBRARY)
|
|
target_link_libraries(test_cxx_runtime ${M_LIBRARY})
|
|
endif()
|
|
endif()
|
|
set(CMAKE_CXX_IMPLICIT_LINK_LIBRARIES "")
|
|
target_link_libraries(test_cxx_runtime ${CXX_RUNTIME})
|
|
set_target_properties(test_cxx_runtime PROPERTIES
|
|
LINKER_LANGUAGE C)
|
|
endif()
|