2018-05-25 18:21:59 +02:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
|
|
|
project(wutstdc++ CXX)
|
|
|
|
|
|
|
|
add_library(wutstdc++
|
2018-05-25 19:15:39 +02:00
|
|
|
gthread.cc
|
|
|
|
gthread_cond.cc
|
2018-05-25 19:06:54 +02:00
|
|
|
gthread_keys.cc
|
2018-05-25 19:15:39 +02:00
|
|
|
gthread_mutex.cc
|
|
|
|
gthread_once.cc
|
|
|
|
gthread_recursive_mutex.cc
|
|
|
|
thread.cc
|
2018-05-25 18:35:07 +02:00
|
|
|
include/bits/gthr-default.h)
|
2018-05-25 18:21:59 +02:00
|
|
|
|
|
|
|
target_compile_definitions(wutstdc++
|
|
|
|
PRIVATE _GLIBCXX_HAS_GTHREADS)
|
|
|
|
|
|
|
|
target_include_directories(wutstdc++
|
|
|
|
PRIVATE "${CMAKE_CURRENT_SOURCE_DIR}/include" "${WUT_ROOT}/include")
|
|
|
|
|
|
|
|
install(TARGETS wutstdc++
|
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
|
|
|
install(DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/include/"
|
|
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/include"
|
|
|
|
FILES_MATCHING PATTERN "*.h*")
|