10bbfda8aSnia# 20bbfda8aSnia# Setup some vars we use in the configure/build process 30bbfda8aSnia# 40bbfda8aSnia 50bbfda8aSnia# The dir in which we ship pregen'd source files 60bbfda8aSniaset(GENSRCDIR ${CMAKE_CURRENT_SOURCE_DIR}/gen) 70bbfda8aSnia 80bbfda8aSnia# Where our manual source (asciidoc) files are 90bbfda8aSniaset(MANSRCDIR ${CMAKE_SOURCE_DIR}/doc/manual) 100bbfda8aSnia 110bbfda8aSnia# Various build tools 120bbfda8aSniaset(TOOLS ${CMAKE_SOURCE_DIR}/tools) 130bbfda8aSnia 140bbfda8aSnia 150bbfda8aSnia# Our base set of sources 160bbfda8aSniaset(CTWMSRC 170bbfda8aSnia # Basic files ##STDSRC-START 180bbfda8aSnia add_window.c 190bbfda8aSnia animate.c 200bbfda8aSnia clargs.c 210bbfda8aSnia clicktofocus.c 220bbfda8aSnia colormaps.c 230bbfda8aSnia ctopts.c 240bbfda8aSnia ctwm_main.c 25b18c2d1eSnia ctwm_shutdown.c 26b18c2d1eSnia ctwm_takeover.c 270bbfda8aSnia cursor.c 280bbfda8aSnia drawing.c 290bbfda8aSnia event_core.c 300bbfda8aSnia event_handlers.c 310bbfda8aSnia event_names.c 320bbfda8aSnia event_utils.c 330bbfda8aSnia functions.c 340bbfda8aSnia functions_icmgr_wsmgr.c 350bbfda8aSnia functions_identify.c 360bbfda8aSnia functions_misc.c 370bbfda8aSnia functions_warp.c 380bbfda8aSnia functions_win.c 390bbfda8aSnia functions_win_moveresize.c 400bbfda8aSnia functions_workspaces.c 410bbfda8aSnia gc.c 420bbfda8aSnia iconmgr.c 430bbfda8aSnia icons.c 440bbfda8aSnia icons_builtin.c 450bbfda8aSnia image.c 460bbfda8aSnia image_bitmap.c 470bbfda8aSnia image_bitmap_builtin.c 480bbfda8aSnia image_xwd.c 490bbfda8aSnia list.c 500bbfda8aSnia mask_screen.c 510bbfda8aSnia menus.c 520bbfda8aSnia mwmhints.c 530bbfda8aSnia occupation.c 540bbfda8aSnia otp.c 550bbfda8aSnia parse.c 560bbfda8aSnia parse_be.c 570bbfda8aSnia parse_yacc.c 58b18c2d1eSnia r_area.c 59b18c2d1eSnia r_area_list.c 60b18c2d1eSnia r_layout.c 61b18c2d1eSnia signals.c 620bbfda8aSnia util.c 630bbfda8aSnia vscreen.c 640bbfda8aSnia win_decorations.c 650bbfda8aSnia win_decorations_init.c 660bbfda8aSnia win_iconify.c 670bbfda8aSnia win_ops.c 680bbfda8aSnia win_regions.c 690bbfda8aSnia win_resize.c 70b18c2d1eSnia win_ring.c 710bbfda8aSnia win_utils.c 720bbfda8aSnia workspace_config.c 730bbfda8aSnia workspace_manager.c 740bbfda8aSnia workspace_utils.c 75b18c2d1eSnia xparsegeometry.c 760bbfda8aSnia 770bbfda8aSnia # External libs 780bbfda8aSnia ext/repl_str.c 790bbfda8aSnia ##STDSRC-END 800bbfda8aSnia 810bbfda8aSnia # Generated files ##GENSRC-START 820bbfda8aSnia ctwm_atoms.c 830bbfda8aSnia deftwmrc.c 840bbfda8aSnia gram.tab.c 850bbfda8aSnia lex.c 860bbfda8aSnia version.c 870bbfda8aSnia ##GENSRC-END 880bbfda8aSnia) 890bbfda8aSnia 900bbfda8aSnia 910bbfda8aSnia# Libs to link in (init empty list) 920bbfda8aSniaset(CTWMLIBS) 930bbfda8aSnia 940bbfda8aSnia 950bbfda8aSnia# Our normal set of warning flags 960bbfda8aSniaset(STD_WARNS 970bbfda8aSnia -Wall 980bbfda8aSnia -Wshadow -Wstrict-prototypes -Wmissing-prototypes -Wundef 990bbfda8aSnia -Wredundant-decls -Wcast-align -Wcast-qual -Wchar-subscripts 1000bbfda8aSnia -Winline -Wnested-externs -Wmissing-declarations 1010bbfda8aSnia) 102