2018-06-17 15:19:51 +02:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2018-06-23 14:45:29 +02:00
|
|
|
project(utilswut)
|
2018-06-17 15:19:51 +02:00
|
|
|
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
|
|
|
|
|
|
|
|
file(GLOB_RECURSE SOURCE_FILES *.c *.cpp)
|
|
|
|
file(GLOB_RECURSE HEADER_FILES *.h)
|
|
|
|
|
2018-06-23 14:45:29 +02:00
|
|
|
add_library(utilswut STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-23 14:45:29 +02:00
|
|
|
target_include_directories(utilswut PUBLIC "include")
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-23 14:45:29 +02:00
|
|
|
wut_enable_stdcpp(utilswut)
|
|
|
|
wut_default_malloc(utilswut)
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-23 14:45:29 +02:00
|
|
|
target_include_directories(utilswut PUBLIC "include")
|
2018-06-17 15:19:51 +02:00
|
|
|
|
|
|
|
|
2018-06-23 14:45:29 +02:00
|
|
|
install(TARGETS utilswut
|
2018-06-17 15:19:51 +02:00
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
|
|
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
|
2018-06-23 14:45:29 +02:00
|
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libutilswut"
|
2018-06-17 15:19:51 +02:00
|
|
|
FILES_MATCHING PATTERN "*.h*")
|