medit/moo/mooapp/mooapp.cmake
2016-10-08 15:00:24 -07:00

29 lines
830 B
CMake

SET(mooapp_sources
mooapp/mooapp.cmake
mooapp/mooappabout.cpp
mooapp/mooappabout.h
mooapp/mooapp.cpp
mooapp/mooapp.h
mooapp/mooapp-accels.h
mooapp/mooapp-info.h
mooapp/mooapp-private.h
mooapp/moohtml.h
mooapp/moohtml.cpp
mooapp/moolinklabel.h
mooapp/moolinklabel.cpp
)
foreach(input_file
mooapp/glade/mooappabout-dialog.glade
mooapp/glade/mooappabout-license.glade
mooapp/glade/mooappabout-credits.glade
)
ADD_GXML(${input_file})
endforeach(input_file)
add_custom_command(OUTPUT mooapp-credits.h
COMMAND ${MOO_PYTHON} ${CMAKE_SOURCE_DIR}/tools/xml2h.py ${CMAKE_SOURCE_DIR}/THANKS mooapp-credits.h MOO_APP_CREDITS
MAIN_DEPENDENCY ${CMAKE_SOURCE_DIR}/THANKS
DEPENDS ${CMAKE_SOURCE_DIR}/tools/xml2h.py)
list(APPEND built_mooapp_sources mooapp-credits.h)