freebsd-skq/CMakeLists.txt
Dimitry Andric c8c9adf9f5 Import libcxxrt master 00bc29eb6513624824a6d7db2ebc768a4216a604.
Interesting fixes:
76584a0  Reorganize code to use only 32bit atomic ops for 32bit platforms
30d2ae5  Implement __cxa_throw_bad_array_new_length
2014-12-29 20:29:59 +00:00

28 lines
532 B
CMake

set(CXXRT_SOURCES
dynamic_cast.cc
exception.cc
guard.cc
stdexcept.cc
typeinfo.cc
memory.cc
auxhelper.cc
libelftc_dem_gnu3.c
)
add_library(cxxrt-static STATIC ${CXXRT_SOURCES})
add_library(cxxrt-shared SHARED ${CXXRT_SOURCES})
if ("${CMAKE_SYSTEM_NAME}" STREQUAL "Linux")
target_link_libraries(cxxrt-shared dl)
target_link_libraries(cxxrt-static dl)
endif()
set_target_properties(cxxrt-static cxxrt-shared PROPERTIES
OUTPUT_NAME "cxxrt"
)