-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmake_utils.cmake
30 lines (25 loc) · 1.13 KB
/
cmake_utils.cmake
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
cmake_minimum_required(VERSION 3.22)
if(NOT DEFINED CMAKE_UTILS_INCLUDED)
######################## Set where to search .cmake files ############################
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/utils")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/modules")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/output_generators")
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/IDE_project_generators")
message("CMAKE_MODULE_PATH: -> ${CMAKE_MODULE_PATH}")
######################## External .cmake files includes ############################
include(GNUInstallDirs)
include(CMakePackageConfigHelpers)
include(diagnostic)
include(add_targets)
include(graphviz)
include(path_list)
include(ti-c28-output_generation)
include(ti-m3-output_generation)
include(ti-f2806x-output_generation)
include(xc16-output_generation)
include(run_pickpack)
# include(info_collector)
include(info_pre_collector)
set(CMAKE_UTILS_PATH "${CMAKE_CURRENT_LIST_DIR}" CACHE INTERNAL "CMAKE_UTILS_PATH")
set(CMAKE_UTILS_INCLUDED TRUE)
endif()