]> Gitweb @ Texas Instruments - Open Source Git Repositories - git.TI.com/gitweb - processor-sdk/open-amp.git/blob - CMakeLists.txt
Use CMake for compilation
[processor-sdk/open-amp.git] / CMakeLists.txt
1 cmake_minimum_required (VERSION 2.6)
4 # The version number
5 set (OPENAMP_VERSION_MAJOR 1)
6 set (OPENAMP_VERSION_MINOR 0)
8 list (APPEND CMAKE_MODULE_PATH
9   "${CMAKE_SOURCE_DIR}/cmake"
10   "${CMAKE_SOURCE_DIR}/cmake/modules"
11   "${CMAKE_SOURCE_DIR}/cmake/platforms")
13 project (OpenAMP)
14 enable_language(C ASM)
16 include (CheckIncludeFiles)
17 include (CheckCSourceCompiles)
18 include (collect)
19 include (options)
20 enable_testing ()
22 set (OPENAMP_ROOT_DIR "${CMAKE_CURRENT_SOURCE_DIR}")
23 set (OPENAMP_BIN_ROOT "${CMAKE_CURRENT_BINARY_DIR}")
25 if (WITH_OBSOLETE)
26   add_subdirectory (obsolete)
27 endif (WITH_OBSOLETE)
29 add_subdirectory (lib)
31 if (WITH_APPS)
32   add_subdirectory (apps)
33 endif (WITH_APPS)
35 # vim: expandtab:ts=2:sw=2:smartindent