2021-05-25 21:31:50 +02:00
|
|
|
cmake_minimum_required(VERSION 3.15)
|
2021-12-31 10:42:44 +01:00
|
|
|
project(FxLibc VERSION 1.3.0 LANGUAGES C ASM)
|
2021-05-09 14:30:46 +02:00
|
|
|
|
2021-06-07 18:57:11 +02:00
|
|
|
set(CMAKE_INSTALL_MESSAGE LAZY)
|
|
|
|
|
2021-05-09 14:30:46 +02:00
|
|
|
# Options
|
|
|
|
|
|
|
|
# * -DFXLIBC_TARGET=<vhex-sh, vhex-x86, casiowin-fx, casiowin-cg, gint>
|
2021-10-10 19:34:46 +02:00
|
|
|
# * -DFXLIBC_SHARED=1
|
2021-05-09 14:30:46 +02:00
|
|
|
|
|
|
|
option(SHARED "Build a shared library")
|
|
|
|
option(STANDARD_NAMESPACE "Use libc.a and put headers in global include folder")
|
|
|
|
|
|
|
|
set(TARGET_FOLDERS ${FXLIBC_TARGET})
|
2021-05-25 21:51:52 +02:00
|
|
|
# Install paths
|
|
|
|
set(LIBDIR "lib")
|
|
|
|
set(INCDIR "include")
|
2021-05-09 14:30:46 +02:00
|
|
|
|
|
|
|
if(FXLIBC_TARGET STREQUAL vhex-sh)
|
|
|
|
list(APPEND TARGET_FOLDERS vhex-generic sh-generic)
|
|
|
|
set(FXLIBC_ARCH sh)
|
|
|
|
add_definitions(-D__SUPPORT_VHEX_KERNEL)
|
2021-11-07 18:05:33 +01:00
|
|
|
# set(FXLIBC_SHARED ON)
|
2021-05-09 14:30:46 +02:00
|
|
|
endif()
|
|
|
|
|
2021-05-11 09:22:34 +02:00
|
|
|
if(FXLIBC_TARGET STREQUAL vhex-x86)
|
2021-05-09 14:30:46 +02:00
|
|
|
list(APPEND TARGET_FOLDERS vhex-generic x86-generic)
|
|
|
|
set(FXLIBC_ARCH x86)
|
|
|
|
add_definitions(-D__SUPPORT_VHEX_KERNEL)
|
2021-11-07 18:05:33 +01:00
|
|
|
# set(FXLIBC_SHARED ON)
|
2021-05-11 09:22:34 +02:00
|
|
|
# TODO: Maybe add -nostdinc (but that removes compiler-provided headers like
|
|
|
|
# <stddef.h>), or use another compiler than the system one?
|
2021-05-09 14:30:46 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FXLIBC_TARGET STREQUAL casiowin-fx)
|
|
|
|
list(APPEND TARGET_FOLDERS sh-generic)
|
|
|
|
set(FXLIBC_ARCH sh)
|
|
|
|
add_definitions(-D__SUPPORT_CASIOWIN_FX9860G)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FXLIBC_TARGET STREQUAL casiowin-cg)
|
|
|
|
list(APPEND TARGET_FOLDERS sh-generic)
|
|
|
|
set(FXLIBC_ARCH sh)
|
|
|
|
add_definitions(-D__SUPPORT_CASIOWIN_FXCG50)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(FXLIBC_TARGET STREQUAL gint)
|
|
|
|
list(APPEND TARGET_FOLDERS sh-generic)
|
|
|
|
set(FXLIBC_ARCH sh)
|
|
|
|
add_definitions(-D__SUPPORT_GINT)
|
2021-05-25 21:51:52 +02:00
|
|
|
|
|
|
|
# Default to fxSDK install path
|
|
|
|
if(CMAKE_INSTALL_PREFIX_INITIALIZED_TO_DEFAULT)
|
|
|
|
set(CMAKE_INSTALL_PREFIX "${FXSDK_COMPILER_INSTALL}" CACHE PATH "..." FORCE)
|
2021-05-29 20:11:12 +02:00
|
|
|
endif()
|
|
|
|
|
|
|
|
if(CMAKE_INSTALL_PREFIX STREQUAL "${FXSDK_COMPILER_INSTALL}")
|
2021-05-25 21:51:52 +02:00
|
|
|
set(LIBDIR ".")
|
|
|
|
set(INCDIR "include")
|
|
|
|
endif()
|
2021-05-09 14:30:46 +02:00
|
|
|
endif()
|
|
|
|
|
2021-05-20 11:33:22 +02:00
|
|
|
if(sh-generic IN_LIST TARGET_FOLDERS)
|
|
|
|
add_definitions(-D__SUPPORT_ARCH_SH)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(x86-generic IN_LIST TARGET_FOLDERS)
|
|
|
|
add_definitions(-D__SUPPORT_ARCH_X86)
|
|
|
|
endif()
|
|
|
|
|
2021-05-09 14:30:46 +02:00
|
|
|
# TODO: Preprocessor definitions for configuration
|
|
|
|
# configure_file()
|
|
|
|
|
|
|
|
# libc.{a,so} libfxlibc.{a,so}
|
|
|
|
|
|
|
|
add_compile_options(-Wall -Wextra -std=c11 -ffreestanding -Os)
|
|
|
|
if(FXLIBC_ARCH STREQUAL sh)
|
|
|
|
add_compile_options(
|
|
|
|
"$<$<COMPILE_LANGUAGE:C>:-m3;-mb>"
|
|
|
|
"$<$<COMPILE_LANGUAGE:ASM>:-m4-nofpu;-mb;-Wa,--dsp>")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Building
|
|
|
|
|
|
|
|
set(SOURCES
|
2021-06-07 18:57:11 +02:00
|
|
|
# 3rdparty
|
|
|
|
3rdparty/grisu2b_59_56/grisu2b_59_56.c
|
2021-06-07 21:54:55 +02:00
|
|
|
3rdparty/tinymt32/rand.c
|
|
|
|
3rdparty/tinymt32/tinymt32.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# assert
|
2021-05-16 18:05:56 +02:00
|
|
|
src/libc/assert/assert.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# ctype
|
2021-05-16 18:09:40 +02:00
|
|
|
src/libc/ctype/isalnum.c
|
|
|
|
src/libc/ctype/isalpha.c
|
|
|
|
src/libc/ctype/isblank.c
|
|
|
|
src/libc/ctype/iscntrl.c
|
|
|
|
src/libc/ctype/isdigit.c
|
|
|
|
src/libc/ctype/isgraph.c
|
|
|
|
src/libc/ctype/islower.c
|
|
|
|
src/libc/ctype/isprint.c
|
|
|
|
src/libc/ctype/ispunct.c
|
|
|
|
src/libc/ctype/isspace.c
|
|
|
|
src/libc/ctype/isupper.c
|
|
|
|
src/libc/ctype/isxdigit.c
|
|
|
|
src/libc/ctype/tolower.c
|
|
|
|
src/libc/ctype/toupper.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# errno
|
2021-05-16 18:10:30 +02:00
|
|
|
src/libc/errno/errno.c
|
2021-05-18 21:30:14 +02:00
|
|
|
# inttypes
|
|
|
|
src/libc/inttypes/imaxabs.c
|
|
|
|
src/libc/inttypes/imaxdiv.c
|
2021-05-20 16:05:20 +02:00
|
|
|
src/libc/inttypes/strtoimax.c
|
|
|
|
src/libc/inttypes/strtoumax.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# locale
|
2021-05-16 18:08:05 +02:00
|
|
|
src/libc/locale/setlocale.c
|
|
|
|
src/libc/locale/localeconv.c
|
2021-05-29 18:26:33 +02:00
|
|
|
# signal
|
|
|
|
src/libc/signal/signal.c
|
|
|
|
src/libc/signal/raise.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# stdio
|
2021-06-07 19:09:55 +02:00
|
|
|
src/libc/stdio/asprintf.c
|
2022-01-02 22:09:06 +01:00
|
|
|
src/libc/stdio/clearerr.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/stdio/dprintf.c
|
2022-01-02 18:51:16 +01:00
|
|
|
src/libc/stdio/fclose.c
|
|
|
|
src/libc/stdio/fdopen.c
|
2022-01-02 22:09:06 +01:00
|
|
|
src/libc/stdio/ferror.c
|
|
|
|
src/libc/stdio/feof.c
|
2022-01-01 17:11:04 +01:00
|
|
|
src/libc/stdio/fflush.c
|
2022-01-14 17:16:04 +01:00
|
|
|
src/libc/stdio/fgetc.c
|
2022-01-02 22:09:06 +01:00
|
|
|
src/libc/stdio/fgetpos.c
|
2022-01-14 17:16:04 +01:00
|
|
|
src/libc/stdio/fgets.c
|
2022-01-01 17:11:04 +01:00
|
|
|
src/libc/stdio/fileutil.c
|
2022-01-02 18:51:16 +01:00
|
|
|
src/libc/stdio/fopen.c
|
2021-06-07 18:57:11 +02:00
|
|
|
src/libc/stdio/fprintf.c
|
2022-01-13 21:21:23 +01:00
|
|
|
src/libc/stdio/fputc.c
|
|
|
|
src/libc/stdio/fputs.c
|
2022-01-05 21:25:41 +01:00
|
|
|
src/libc/stdio/fread.c
|
2022-01-02 18:51:16 +01:00
|
|
|
src/libc/stdio/freopen.c
|
2022-01-02 22:09:06 +01:00
|
|
|
src/libc/stdio/fseek.c
|
|
|
|
src/libc/stdio/fsetpos.c
|
|
|
|
src/libc/stdio/ftell.c
|
2022-01-05 21:25:41 +01:00
|
|
|
src/libc/stdio/fwrite.c
|
|
|
|
src/libc/stdio/getc.c
|
|
|
|
src/libc/stdio/getchar.c
|
|
|
|
src/libc/stdio/gets.c
|
2022-01-14 18:38:48 +01:00
|
|
|
src/libc/stdio/perror.c
|
2021-06-07 18:57:11 +02:00
|
|
|
src/libc/stdio/printf.c
|
2021-06-08 10:32:08 +02:00
|
|
|
src/libc/stdio/printf/format_fixed.c
|
2021-06-07 18:57:11 +02:00
|
|
|
src/libc/stdio/printf/format_fp.c
|
|
|
|
src/libc/stdio/printf/format_usual.c
|
|
|
|
src/libc/stdio/printf/print.c
|
2021-06-08 10:32:08 +02:00
|
|
|
src/libc/stdio/printf/util.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/stdio/putc.c
|
2022-01-05 21:25:41 +01:00
|
|
|
src/libc/stdio/putchar.c
|
2021-06-07 18:57:11 +02:00
|
|
|
src/libc/stdio/puts.c
|
2022-01-01 17:11:04 +01:00
|
|
|
src/libc/stdio/remove.c
|
2022-01-02 22:09:06 +01:00
|
|
|
src/libc/stdio/rewind.c
|
2022-01-01 17:11:04 +01:00
|
|
|
src/libc/stdio/setbuf.c
|
|
|
|
src/libc/stdio/setvbuf.c
|
2021-06-07 18:57:11 +02:00
|
|
|
src/libc/stdio/snprintf.c
|
|
|
|
src/libc/stdio/sprintf.c
|
2022-01-14 18:38:48 +01:00
|
|
|
src/libc/stdio/streams.c
|
2022-01-12 10:20:12 +01:00
|
|
|
src/libc/stdio/ungetc.c
|
2021-06-07 19:09:55 +02:00
|
|
|
src/libc/stdio/vasprintf.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/stdio/vdprintf.c
|
2021-06-07 18:57:11 +02:00
|
|
|
src/libc/stdio/vfprintf.c
|
|
|
|
src/libc/stdio/vprintf.c
|
|
|
|
src/libc/stdio/vsnprintf.c
|
|
|
|
src/libc/stdio/vsprintf.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# stdlib
|
2021-05-29 18:26:33 +02:00
|
|
|
src/libc/stdlib/abort.c
|
2021-05-18 21:25:45 +02:00
|
|
|
src/libc/stdlib/abs.c
|
2021-05-21 23:52:54 +02:00
|
|
|
src/libc/stdlib/atof.c
|
2021-05-20 11:11:24 +02:00
|
|
|
src/libc/stdlib/atoi.c
|
|
|
|
src/libc/stdlib/atol.c
|
|
|
|
src/libc/stdlib/atoll.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/stdlib/calloc.c
|
2021-05-18 21:25:45 +02:00
|
|
|
src/libc/stdlib/div.c
|
2021-05-29 16:45:35 +02:00
|
|
|
src/libc/stdlib/exit.c
|
2021-05-18 21:25:45 +02:00
|
|
|
src/libc/stdlib/labs.c
|
|
|
|
src/libc/stdlib/ldiv.c
|
|
|
|
src/libc/stdlib/llabs.c
|
|
|
|
src/libc/stdlib/lldiv.c
|
2021-06-28 15:49:47 +02:00
|
|
|
src/libc/stdlib/qsort.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/stdlib/reallocarray.c
|
2021-05-21 23:52:54 +02:00
|
|
|
src/libc/stdlib/strto_fp.c
|
2021-05-20 09:23:06 +02:00
|
|
|
src/libc/stdlib/strto_int.c
|
2021-05-21 23:52:54 +02:00
|
|
|
src/libc/stdlib/strtod.c
|
|
|
|
src/libc/stdlib/strtof.c
|
2021-05-20 11:01:15 +02:00
|
|
|
src/libc/stdlib/strtol.c
|
2021-05-21 22:49:55 +02:00
|
|
|
src/libc/stdlib/strtold.c
|
2021-05-20 11:01:15 +02:00
|
|
|
src/libc/stdlib/strtoll.c
|
|
|
|
src/libc/stdlib/strtoul.c
|
2021-05-19 21:39:33 +02:00
|
|
|
src/libc/stdlib/strtoull.c
|
2021-05-18 21:25:45 +02:00
|
|
|
# string
|
2021-05-23 16:45:02 +02:00
|
|
|
src/libc/string/memchr.c
|
|
|
|
src/libc/string/memcmp.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/string/memcpy.c
|
2021-05-23 16:45:02 +02:00
|
|
|
src/libc/string/memmove.c
|
2022-01-10 21:20:55 +01:00
|
|
|
src/libc/string/memrchr.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/string/memset.c
|
2021-05-24 10:04:54 +02:00
|
|
|
src/libc/string/strcasecmp.c
|
|
|
|
src/libc/string/strcasestr.c
|
2021-05-23 16:07:01 +02:00
|
|
|
src/libc/string/strcat.c
|
|
|
|
src/libc/string/strchr.c
|
|
|
|
src/libc/string/strchrnul.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/string/strcmp.c
|
2021-05-23 18:06:57 +02:00
|
|
|
src/libc/string/strcoll.c
|
2021-05-23 16:07:01 +02:00
|
|
|
src/libc/string/strcpy.c
|
2021-05-23 18:02:38 +02:00
|
|
|
src/libc/string/strcspn.c
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/string/strdup.c
|
2021-05-23 17:44:37 +02:00
|
|
|
src/libc/string/strerror.c
|
2021-05-23 15:57:45 +02:00
|
|
|
src/libc/string/strlen.c
|
2021-05-24 10:04:54 +02:00
|
|
|
src/libc/string/strncasecmp.c
|
2021-05-23 17:26:01 +02:00
|
|
|
src/libc/string/strncat.c
|
2021-05-23 17:04:08 +02:00
|
|
|
src/libc/string/strncmp.c
|
2021-05-23 17:08:22 +02:00
|
|
|
src/libc/string/strncpy.c
|
2021-05-23 17:48:43 +02:00
|
|
|
src/libc/string/strndup.c
|
2021-05-23 16:07:01 +02:00
|
|
|
src/libc/string/strnlen.c
|
2021-05-23 18:11:12 +02:00
|
|
|
src/libc/string/strpbrk.c
|
2021-05-23 18:02:38 +02:00
|
|
|
src/libc/string/strrchr.c
|
2021-05-23 18:06:57 +02:00
|
|
|
src/libc/string/strspn.c
|
2021-05-24 10:04:54 +02:00
|
|
|
src/libc/string/strstr.c
|
|
|
|
src/libc/string/strstr_base.c
|
2021-05-24 10:25:32 +02:00
|
|
|
src/libc/string/strtok.c
|
2021-11-29 17:10:54 +01:00
|
|
|
src/libc/string/strxfrm.c
|
|
|
|
# time
|
|
|
|
src/libc/time/asctime.c
|
|
|
|
src/libc/time/ctime.c
|
|
|
|
src/libc/time/difftime.c
|
|
|
|
src/libc/time/gmtime.c
|
|
|
|
src/libc/time/localtime.c
|
|
|
|
src/libc/time/mktime.c
|
|
|
|
src/libc/time/strftime.c)
|
2021-05-09 14:30:46 +02:00
|
|
|
|
2021-06-07 18:57:11 +02:00
|
|
|
# Silence extended warnings on Grisu2b code
|
|
|
|
set_source_files_properties(3rdparty/grisu2b_59_56/grisu2b_59_56.c PROPERTIES
|
|
|
|
COMPILE_OPTIONS "-Wno-all;-Wno-extra")
|
|
|
|
|
2021-05-09 14:30:46 +02:00
|
|
|
if(vhex-generic IN_LIST TARGET_FOLDERS)
|
|
|
|
# TODO
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(vhex-sh IN_LIST TARGET_FOLDERS)
|
|
|
|
list(APPEND SOURCES
|
|
|
|
src/libc/signal/target/vhex-sh/kill.S
|
|
|
|
src/libc/signal/target/vhex-sh/signal.S
|
2021-11-07 18:05:33 +01:00
|
|
|
src/libc/stdlib/target/vhex-sh/_Exit.S
|
2021-05-09 14:30:46 +02:00
|
|
|
src/libc/stdlib/target/vhex-sh/free.S
|
|
|
|
src/libc/stdlib/target/vhex-sh/malloc.S
|
|
|
|
src/libc/stdlib/target/vhex-sh/realloc.S
|
|
|
|
src/posix/fcntl/target/vhex-sh/open.S
|
|
|
|
src/posix/sys/wait/target/vhex-sh/wait.S
|
|
|
|
src/posix/sys/wait/target/vhex-sh/waitpid.S
|
|
|
|
src/posix/unistd/target/vhex-sh/read.S
|
|
|
|
src/posix/unistd/target/vhex-sh/getppid.S
|
|
|
|
src/posix/unistd/target/vhex-sh/close.S
|
|
|
|
src/posix/unistd/target/vhex-sh/fork_execve.S
|
|
|
|
src/posix/unistd/target/vhex-sh/lseek.S
|
|
|
|
src/posix/unistd/target/vhex-sh/getpid.S
|
|
|
|
src/posix/unistd/target/vhex-sh/getpgid.S
|
|
|
|
src/posix/unistd/target/vhex-sh/setpgid.S
|
|
|
|
src/posix/unistd/target/vhex-sh/write.S)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if(sh-generic IN_LIST TARGET_FOLDERS)
|
|
|
|
list(APPEND SOURCES
|
|
|
|
src/libc/setjmp/target/sh-generic/setjmp.S
|
2021-05-23 14:30:35 +02:00
|
|
|
src/libc/setjmp/target/sh-generic/longjmp.S
|
2021-05-23 15:31:01 +02:00
|
|
|
src/libc/string/target/sh-generic/memchr.S
|
2021-05-23 16:40:21 +02:00
|
|
|
src/libc/string/target/sh-generic/memcmp.S
|
2021-05-23 16:22:25 +02:00
|
|
|
src/libc/string/target/sh-generic/memcpy.S
|
2021-05-23 16:47:31 +02:00
|
|
|
src/libc/string/target/sh-generic/memmove.S
|
2021-05-23 16:16:45 +02:00
|
|
|
src/libc/string/target/sh-generic/memset.S
|
2021-05-23 15:57:45 +02:00
|
|
|
src/libc/string/target/sh-generic/strlen.S
|
2021-05-23 15:31:01 +02:00
|
|
|
src/target/sh-generic/cpucap.c)
|
2021-05-09 14:30:46 +02:00
|
|
|
endif()
|
|
|
|
|
2021-06-07 21:54:55 +02:00
|
|
|
if(gint IN_LIST TARGET_FOLDERS)
|
|
|
|
list(APPEND SOURCES
|
2021-11-29 17:10:54 +01:00
|
|
|
# stdlib
|
2021-06-07 21:54:55 +02:00
|
|
|
src/libc/stdlib/target/gint/free.c
|
|
|
|
src/libc/stdlib/target/gint/malloc.c
|
2021-11-29 17:10:54 +01:00
|
|
|
src/libc/stdlib/target/gint/realloc.c
|
|
|
|
# time
|
|
|
|
src/libc/time/target/gint/clock.c
|
|
|
|
src/libc/time/target/gint/time.c)
|
2021-06-07 21:54:55 +02:00
|
|
|
endif()
|
|
|
|
|
2021-05-09 14:30:46 +02:00
|
|
|
if(casiowin-fx IN_LIST TARGET_FOLDERS)
|
|
|
|
list(APPEND SOURCES
|
|
|
|
src/posix/unistd/target/casiowin-fx/close.S)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# TODO: All targets
|
|
|
|
|
|
|
|
add_library(fxlibc ${SOURCES})
|
2021-10-10 19:34:46 +02:00
|
|
|
|
2021-05-09 14:30:46 +02:00
|
|
|
target_include_directories(fxlibc PRIVATE include/)
|
2021-05-20 11:34:28 +02:00
|
|
|
if(sh-generic IN_LIST TARGET_FOLDERS)
|
|
|
|
target_include_directories(fxlibc PRIVATE "${FXSDK_COMPILER_INSTALL}/include/openlibm")
|
|
|
|
endif()
|
|
|
|
|
2021-10-10 19:34:46 +02:00
|
|
|
if(FXLIBC_SHARED)
|
|
|
|
target_compile_options(fxlibc PRIVATE -fPIC)
|
|
|
|
|
|
|
|
if("${FXLIBC_ARCH}" STREQUAL "sh")
|
|
|
|
# Original command: "ar qc <TARGET> <OBJECTS>; ranlib <TARGET>"
|
|
|
|
set(CMAKE_C_CREATE_STATIC_LIBRARY
|
|
|
|
"sh-elf-ld -shared <OBJECTS> -o <TARGET>")
|
|
|
|
else()
|
|
|
|
message(SEND_ERROR "TODO: Shared vhex on non-SuperH not available yet")
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2021-05-09 17:34:00 +02:00
|
|
|
foreach(FOLDER IN LISTS TARGET_FOLDERS)
|
|
|
|
target_include_directories(fxlibc PRIVATE include/target/${FOLDER}/)
|
|
|
|
endforeach()
|
2021-05-09 14:30:46 +02:00
|
|
|
|
2021-05-09 17:32:28 +02:00
|
|
|
set_target_properties(fxlibc PROPERTIES
|
|
|
|
OUTPUT_NAME "c") # libc.a
|
2021-05-09 14:30:46 +02:00
|
|
|
|
2021-05-09 17:32:28 +02:00
|
|
|
# Install
|
2021-05-09 14:30:46 +02:00
|
|
|
|
2021-05-25 21:51:52 +02:00
|
|
|
install(TARGETS fxlibc DESTINATION ${LIBDIR})
|
|
|
|
install(DIRECTORY include/ DESTINATION ${INCDIR} PATTERN "target" EXCLUDE)
|
2021-05-09 17:32:28 +02:00
|
|
|
|
|
|
|
foreach(FOLDER IN LISTS TARGET_FOLDERS)
|
2021-05-23 15:27:10 +02:00
|
|
|
if(EXISTS "${CMAKE_CURRENT_SOURCE_DIR}/include/target/${FOLDER}")
|
2021-05-25 21:51:52 +02:00
|
|
|
install(DIRECTORY include/target/${FOLDER}/ DESTINATION ${INCDIR})
|
2021-05-09 17:34:00 +02:00
|
|
|
endif()
|
2021-05-09 17:32:28 +02:00
|
|
|
endforeach()
|