diff options
author | Brad King <brad.king@kitware.com> | 2015-08-18 14:12:03 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-08-18 14:12:03 (GMT) |
commit | f1d08e59239339103abc88f499f1c0fa427174b7 (patch) | |
tree | 3d82b24f246ea8f48bbd74457aa6aa9465135b5a | |
parent | 868be9c6403e6221096e03763eb1944c487b3c9e (diff) | |
parent | 462fbd1ecac6968f6c0695737c8e432c9660121c (diff) | |
download | CMake-f1d08e59239339103abc88f499f1c0fa427174b7.zip CMake-f1d08e59239339103abc88f499f1c0fa427174b7.tar.gz CMake-f1d08e59239339103abc88f499f1c0fa427174b7.tar.bz2 |
Merge topic 'add-ARTOS-platform-module'
462fbd1e Add support for ARTOS platform using GNU C with ac compiler driver
-rw-r--r-- | Modules/Platform/ARTOS-GNU-C.cmake | 9 | ||||
-rw-r--r-- | Modules/Platform/ARTOS.cmake | 17 |
2 files changed, 26 insertions, 0 deletions
diff --git a/Modules/Platform/ARTOS-GNU-C.cmake b/Modules/Platform/ARTOS-GNU-C.cmake new file mode 100644 index 0000000..967d0e7 --- /dev/null +++ b/Modules/Platform/ARTOS-GNU-C.cmake @@ -0,0 +1,9 @@ +# Define ARTOS to select proper behaviour and tell preprocessor to accept C++ style comments. +set(CMAKE_C_FLAGS_INIT "-DARTOS -Xp -+") +# ac doesn't support -g properly and doesn't support the normal gcc optimization options. Just use the defaults set by ac. +set(CMAKE_C_FLAGS_DEBUG_INIT "") +set(CMAKE_C_FLAGS_MINSIZEREL_INIT "-DNDEBUG") +set(CMAKE_C_FLAGS_RELEASE_INIT "-DNDEBUG") +set(CMAKE_C_FLAGS_RELWITHDEBINFO_INIT "-DNDEBUG") +# Most projects expect the stdio functions to be available. +set(CMAKE_C_STANDARD_LIBRARIES_INIT "stdio.a") diff --git a/Modules/Platform/ARTOS.cmake b/Modules/Platform/ARTOS.cmake new file mode 100644 index 0000000..f9365d6 --- /dev/null +++ b/Modules/Platform/ARTOS.cmake @@ -0,0 +1,17 @@ +# Support for ARTOS RTOS (locamation.com) +set(CMAKE_LINK_LIBRARY_SUFFIX "") +set(CMAKE_STATIC_LIBRARY_PREFIX "") +set(CMAKE_STATIC_LIBRARY_SUFFIX ".a") +set(CMAKE_SHARED_LIBRARY_PREFIX "") +set(CMAKE_SHARED_LIBRARY_SUFFIX ".a") +set(CMAKE_EXECUTABLE_SUFFIX ".x") +set(CMAKE_DL_LIBS "") + +set(CMAKE_FIND_LIBRARY_PREFIXES "") +set(CMAKE_FIND_LIBRARY_SUFFIXES ".a") + +# ARTOS does not support shared libs +set_property(GLOBAL PROPERTY TARGET_SUPPORTS_SHARED_LIBS FALSE) + +set(CMAKE_C_LINK_SHARED_LIBRARY ) +set(CMAKE_C_LINK_MODULE_LIBRARY ) |