2018-06-17 15:19:51 +02:00
|
|
|
cmake_minimum_required(VERSION 3.2)
|
2018-06-23 13:51:09 +02:00
|
|
|
project(utils)
|
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 13:51:09 +02:00
|
|
|
add_library(utils STATIC ${SOURCE_FILES} ${HEADER_FILES})
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-23 13:51:09 +02:00
|
|
|
target_include_directories(utils PUBLIC "include")
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-23 13:51:09 +02:00
|
|
|
wut_enable_stdcpp(utils)
|
|
|
|
wut_default_malloc(utils)
|
2018-06-17 15:19:51 +02:00
|
|
|
|
2018-06-23 13:51:09 +02:00
|
|
|
target_include_directories(utils PUBLIC "include")
|
2018-06-17 15:19:51 +02:00
|
|
|
|
|
|
|
|
2018-06-23 13:51:09 +02:00
|
|
|
install(TARGETS utils
|
2018-06-17 15:19:51 +02:00
|
|
|
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
|
|
|
|
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
|
|
|
|
DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libutils"
|
|
|
|
FILES_MATCHING PATTERN "*.h*")
|