blob: 68c8139cde0de0498c0cde09c53b4d0f09ed47ca [file] [log] [blame]
#*******************************************************************************
# Copyright (c) 2010 - 2018 ACIN
# This program and the accompanying materials are made available under the
# terms of the Eclipse Public License 2.0 which is available at
# http://www.eclipse.org/legal/epl-2.0.
#
# SPDX-License-Identifier: EPL-2.0
#
# Contributors:
# Alois Zoitl, Patrick Smejkal, Martin Melik-Merkumians
# * - initial API and implementation and/or initial documentation
# * - added utils directory
# *******************************************************************************/
forte_add_include_directories(${CMAKE_CURRENT_SOURCE_DIR})
SET(SOURCE_GROUP ${SOURCE_GROUP}\\arch)
add_subdirectory(be_m1)
add_subdirectory(ecos)
add_subdirectory(freeRTOS)
add_subdirectory(macos)
add_subdirectory(netos)
add_subdirectory(pikeos_posix)
add_subdirectory(plcnext)
add_subdirectory(posix)
add_subdirectory(rcX)
add_subdirectory(vxworks)
add_subdirectory(fake_time)
add_subdirectory(win32)
add_subdirectory(zephyr)
add_subdirectory(utils)
forte_add_sourcefile_hcpp(timerha devlog)
SET(FORTE_LOGGER_BUFFER_SIZE "300" CACHE STRING "Buffer's length of the logger")
mark_as_advanced(FORTE_LOGGER_BUFFER_SIZE)
forte_add_custom_configuration("#define FORTE_LOGGER_BUFFER_SIZE ${FORTE_LOGGER_BUFFER_SIZE}")
if (FORTE_STACKTRACE)
if (FORTE_STACKTRACE_IMPL MATCHES "boost")
find_package(Boost REQUIRED)
forte_add_link_library(backtrace)
forte_add_custom_configuration("#define BOOST_STACKTRACE_USE_BACKTRACE")
if (WIN32 OR MINGW)
forte_add_link_flags(-no-pie)
elseif (UNIX)
forte_add_link_flags(-rdynamic)
forte_add_link_library(dl)
endif ()
endif ()
if (FORTE_STACKTRACE_IMPL MATCHES "cxx23")
if (CMAKE_COMPILER_IS_GNUCXX)
forte_add_link_library(-lstdc++_libbacktrace)
endif ()
endif ()
endif ()
forte_add_sourcefile_with_path_cpp(${CMAKE_BINARY_DIR}/src_gen/startuphook.cpp) # created file