mirror of
https://github.com/reactos/reactos.git
synced 2024-11-07 15:10:53 +00:00
61 lines
1.7 KiB
CMake
61 lines
1.7 KiB
CMake
|
|
remove_definitions(-D_WIN32_WINNT=0x502)
|
|
add_definitions(-D_WIN32_WINNT=0x600)
|
|
|
|
include_directories(
|
|
concfg
|
|
consrv)
|
|
|
|
list(APPEND CONSRV_SOURCE
|
|
consrv/alias.c
|
|
consrv/coninput.c
|
|
consrv/conoutput.c
|
|
consrv/console.c
|
|
consrv/frontendctl.c
|
|
consrv/handle.c
|
|
consrv/history.c
|
|
consrv/init.c
|
|
consrv/lineinput.c
|
|
consrv/popup.c
|
|
consrv/settings.c
|
|
consrv/shutdown.c
|
|
consrv/subsysreg.c
|
|
consrv/condrv/coninput.c
|
|
consrv/condrv/conoutput.c
|
|
consrv/condrv/console.c
|
|
consrv/condrv/dummyterm.c
|
|
consrv/condrv/graphics.c
|
|
consrv/condrv/text.c
|
|
consrv/frontends/input.c
|
|
consrv/frontends/terminal.c
|
|
consrv/frontends/gui/conwnd.c
|
|
consrv/frontends/gui/fullscreen.c
|
|
consrv/frontends/gui/guiterm.c
|
|
consrv/frontends/gui/guisettings.c
|
|
consrv/frontends/gui/graphics.c
|
|
consrv/frontends/gui/text.c
|
|
consrv/frontends/tui/tuiterm.c
|
|
# consrv/consrv.rc
|
|
consrv/consrv.h)
|
|
|
|
#
|
|
# Explicitely enable MS extensions to be able to use unnamed (anonymous) nested structs.
|
|
#
|
|
# FIXME: http://www.cmake.org/Bug/view.php?id=12998
|
|
if(MSVC)
|
|
## NOTE: No need to specify it as we use MSVC :)
|
|
##add_target_compile_flags(consrv "/Ze")
|
|
#set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "/Ze")
|
|
else()
|
|
#add_target_compile_flags(consrv "-fms-extensions")
|
|
set_source_files_properties(${CONSRV_SOURCE} PROPERTIES COMPILE_FLAGS "-fms-extensions")
|
|
endif()
|
|
|
|
add_library(consrv ${CONSRV_SOURCE})
|
|
add_dependencies(consrv psdk)
|
|
add_pch(consrv consrv/consrv.h CONSRV_SOURCE)
|
|
#add_object_library(consrv ${CONSRV_SOURCE})
|
|
list(APPEND CONSRV_IMPORT_LIBS psapi)
|
|
list(APPEND CONSRV_DELAY_IMPORT_LIBS ole32)
|
|
list(APPEND CONSRV_TARGET_LINK_LIBS concfg uuid)
|
|
set_module_type(consrv module UNICODE)
|