diff options
author | h.udo <hudokkow@gmail.com> | 2016-09-08 18:15:54 +0100 |
---|---|---|
committer | h.udo <hudokkow@gmail.com> | 2016-12-21 10:04:18 +0000 |
commit | a18701e7b2fe03780f90502d5d51e09cdc3ad718 (patch) | |
tree | a9d2c2cca8599a18a78c6b1345f42e48e76ddb27 /cmake/scripts/freebsd | |
parent | f2b31fda391d3364b7307ab9f9216fa0ee7164c7 (diff) |
[cmake] Move to root folder: Move files
Diffstat (limited to 'cmake/scripts/freebsd')
-rw-r--r-- | cmake/scripts/freebsd/ArchSetup.cmake | 16 | ||||
l--------- | cmake/scripts/freebsd/Install.cmake | 1 | ||||
l--------- | cmake/scripts/freebsd/Macros.cmake | 1 | ||||
l--------- | cmake/scripts/freebsd/PathSetup.cmake | 1 |
4 files changed, 19 insertions, 0 deletions
diff --git a/cmake/scripts/freebsd/ArchSetup.cmake b/cmake/scripts/freebsd/ArchSetup.cmake new file mode 100644 index 0000000000..013205c6a0 --- /dev/null +++ b/cmake/scripts/freebsd/ArchSetup.cmake @@ -0,0 +1,16 @@ +set(ARCH_DEFINES -D_LINUX -DTARGET_POSIX -DTARGET_FREEBSD) +set(SYSTEM_DEFINES -D__STDC_CONSTANT_MACROS -D_FILE_DEFINED + -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64) +set(PLATFORM_DIR linux) +set(SYSTEM_LDFLAGS -L/usr/local/lib) +if(WITH_ARCH) + set(ARCH ${WITH_ARCH}) +else() + if(CMAKE_SYSTEM_PROCESSOR STREQUAL amd64) + set(ARCH x86_64-freebsd) + elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "i.86") + set(ARCH x86-freebsd) + else() + message(WARNING "unknown CPU: ${CPU}") + endif() +endif() diff --git a/cmake/scripts/freebsd/Install.cmake b/cmake/scripts/freebsd/Install.cmake new file mode 120000 index 0000000000..28ce0129b9 --- /dev/null +++ b/cmake/scripts/freebsd/Install.cmake @@ -0,0 +1 @@ +../linux/Install.cmake
\ No newline at end of file diff --git a/cmake/scripts/freebsd/Macros.cmake b/cmake/scripts/freebsd/Macros.cmake new file mode 120000 index 0000000000..2fdbb255f9 --- /dev/null +++ b/cmake/scripts/freebsd/Macros.cmake @@ -0,0 +1 @@ +../linux/Macros.cmake
\ No newline at end of file diff --git a/cmake/scripts/freebsd/PathSetup.cmake b/cmake/scripts/freebsd/PathSetup.cmake new file mode 120000 index 0000000000..6786c1c131 --- /dev/null +++ b/cmake/scripts/freebsd/PathSetup.cmake @@ -0,0 +1 @@ +../linux/PathSetup.cmake
\ No newline at end of file |