forked from cmakelib/cmakelib-component-cmdef
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFindCMDEF.cmake
32 lines (23 loc) · 952 Bytes
/
FindCMDEF.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
31
##
#
# Standard CMake Module which can be used by FIND_PACKAGE functionality.
#
# Supported components:
# - DEFAULTS
#
# [Module init workflow]
# - include all CMDEF modules
#
CMAKE_MINIMUM_REQUIRED(VERSION 3.21 FATAL_ERROR)
SET(CMDEF_PACKAGE_NAME "CMDEF")
SET(${CMDEF_PACKAGE_NAME}_FOUND 1)
SET(${CMDEF_PACKAGE_NAME}_DIR "${CMAKE_CURRENT_LIST_DIR}")
INCLUDE_GUARD(GLOBAL)
FIND_PACKAGE(CMLIB REQUIRED COMPONENTS CMUTIL)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_ADD_LIBRARY.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_ADD_EXECUTABLE.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_COMPILE_OPTION.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_COMPILE_DEFINITION.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_LINK_OPTION.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_INSTALL.cmake)
INCLUDE(${CMAKE_CURRENT_LIST_DIR}/system_modules/CMDEF_PACKAGE.cmake)