libutils/CMakeLists.txt
Maschell f02d7da869 Make library compatible with WUT
Remove some features (kernel, function patcher) to be a userland only lib.
2018-06-17 15:19:51 +02:00

22 lines
647 B
CMake

cmake_minimum_required(VERSION 3.2)
project(utilswut)
include("${WUT_ROOT}/share/wut.cmake" REQUIRED)
file(GLOB_RECURSE SOURCE_FILES *.c *.cpp)
file(GLOB_RECURSE HEADER_FILES *.h)
add_library(utilswut STATIC ${SOURCE_FILES} ${HEADER_FILES})
target_include_directories(utilswut PUBLIC "include")
wut_enable_stdcpp(utilswut)
wut_default_malloc(utilswut)
target_include_directories(utilswut PUBLIC "include")
install(TARGETS utilswut
ARCHIVE DESTINATION "${CMAKE_INSTALL_PREFIX}/lib")
install(DIRECTORY ${PROJECT_SOURCE_DIR}/include/
DESTINATION "${CMAKE_INSTALL_PREFIX}/include/libutils"
FILES_MATCHING PATTERN "*.h*")