mirror of
https://github.com/reactos/reactos
synced 2025-10-06 00:12:51 +02:00
[CMAKE] Introduce the REACTOS_MODULE_TYPE target property
And set it in set_module_type function
This commit is contained in:
committed by
Jérôme Gardou
parent
c321d3e88b
commit
840fe4d6ac
@@ -115,6 +115,13 @@ else()
|
||||
set(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE NEVER)
|
||||
|
||||
# Add our own target properties
|
||||
# General module definitions
|
||||
define_property(TARGET PROPERTY REACTOS_MODULE_TYPE
|
||||
BRIEF_DOCS "The type of this module"
|
||||
FULL_DOCS [[
|
||||
The type of this module.
|
||||
One of "nativecui", "nativedll", "kernelmodedriver", "wdmdriver", "kerneldll", "win32cui", "win32gui", "win32dll", "win32ocx", "cpl" or "module"]])
|
||||
|
||||
# C++
|
||||
define_property(TARGET PROPERTY WITH_CXX_EXCEPTIONS
|
||||
BRIEF_DOCS "Enable C++ exceptions on this target"
|
||||
|
@@ -567,6 +567,9 @@ function(set_module_type MODULE TYPE)
|
||||
message(FATAL_ERROR "Unknown type ${TYPE} for module ${MODULE}")
|
||||
endif()
|
||||
|
||||
# Set our target property
|
||||
set_target_properties(${MODULE} PROPERTIES REACTOS_MODULE_TYPE ${TYPE})
|
||||
|
||||
if(DEFINED __subsystem)
|
||||
set_subsystem(${MODULE} ${__subsystem})
|
||||
endif()
|
||||
|
Reference in New Issue
Block a user