1cmake_minimum_required (VERSION 3.0.2) 2if (POLICY CMP0048) 3 cmake_policy(SET CMP0048 NEW) 4endif() 5 6if (POLICY CMP0077) 7 cmake_policy(SET CMP0077 NEW) 8endif() 9 10set (OPENAMP_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}") 11set (OPENAMP_BIN_ROOT "${CMAKE_CURRENT_BINARY_DIR}") 12 13list (APPEND CMAKE_MODULE_PATH 14 "${CMAKE_CURRENT_SOURCE_DIR}/cmake" 15 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/modules" 16 "${CMAKE_CURRENT_SOURCE_DIR}/cmake/platforms") 17 18include (syscheck) 19project (open_amp C) 20 21include (CheckIncludeFiles) 22include (CheckCSourceCompiles) 23include (collect) 24include (options) 25include (depends) 26enable_testing () 27 28 29if (WITH_OBSOLETE) 30 add_subdirectory (obsolete) 31endif (WITH_OBSOLETE) 32 33add_subdirectory (lib) 34 35if (WITH_APPS) 36 add_subdirectory (apps) 37endif (WITH_APPS) 38 39if (WITH_DOC) 40 add_subdirectory (doc) 41endif (WITH_DOC) 42