Better source file groups

This commit is contained in:
Yevgen Muntyan 2015-07-18 14:47:46 -07:00
parent dcaa0adbd2
commit 5fd38d5d63
12 changed files with 23 additions and 1 deletions

View File

@ -83,7 +83,6 @@ macro(ADD_MODULE name)
#source_group(${name}\\generated FILES ${built_${_escaped_name}_sources})
LIST(APPEND MEDIT_SOURCES ${${_escaped_name}_sources} ${built_${_escaped_name}_sources})
LIST(APPEND MEDIT_EXTRA_DIST ${${_escaped_name}_extra_dist} ${${_escaped_name}_extra_files})
message(STATUS "built_${_escaped_name}_sources: ${built_${_escaped_name}_sources}")
endmacro(ADD_MODULE)
ADD_MODULE(xdgmime)
@ -107,6 +106,11 @@ include_directories(
)
link_directories(${GTK_LIBRARY_DIRS} ${GMODULE_LIBRARY_DIRS})
source_group(misc REGULAR_EXPRESSION .*)
source_group("generated\\sources" REGULAR_EXPRESSION ".*\\.c(pp)?$")
source_group("generated\\headers" REGULAR_EXPRESSION ".*\\.h$")
source_group("misc\\glade" REGULAR_EXPRESSION ".*\\.glade$")
add_executable(medit WIN32
${MEDIT_SOURCES}
)

View File

@ -1,4 +1,5 @@
SET(eggsmclient_sources
eggsmclient/eggsmclient.cmake
eggsmclient/eggsmclient.c
eggsmclient/eggsmclient.h
eggsmclient/eggsmclient-mangle.h

View File

@ -1,4 +1,5 @@
SET(gtksourceview_sources
gtksourceview/gtksourceview.cmake
gtksourceview/gtksourcecontextengine.c
gtksourceview/gtksourcecontextengine.h
gtksourceview/gtksourceengine.c

View File

@ -1,4 +1,5 @@
SET(mooapp_sources
mooapp/mooapp.cmake
mooapp/mooappabout.c
mooapp/mooappabout.h
mooapp/mooapp.c

View File

@ -1,6 +1,7 @@
LIST(APPEND moo_edit_enum_headers mooedit/mooedit-enums.h)
SET(mooedit_sources
mooedit/mooedit.cmake
${moo_edit_enum_headers}
mooedit/mooeditor.h
mooedit/mootextview.h

View File

@ -1,4 +1,5 @@
SET(moofileview_sources
moofileview/moofileview.cmake
moofileview/moobookmarkmgr.c
moofileview/moobookmarkmgr.h
moofileview/moobookmarkview.c

View File

@ -9,6 +9,7 @@ LIST(APPEND moo_libadd -ldl)
endif(MOO_OS_DARWIN)
LIST(APPEND moolua_sources
moolua/lua/lua.cmake
moolua/lua/lfs.h
moolua/lua/lfs.cpp
moolua/lua/moolua.h

View File

@ -1,4 +1,5 @@
SET(moolua_sources
moolua/moolua.cmake
moolua/medit-lua.h
moolua/medit-lua.cpp
moolua/mooluaplugin.cpp
@ -10,6 +11,12 @@ SET(moolua_sources
moolua/gtk-lua-api.h
)
SET(moolua_extra_files
moolua/lua-default-init.lua
moolua/lua-module-init.lua
moolua/lua-plugin-init.lua
)
SET(genlua_files
${CMAKE_SOURCE_DIR}/api/genlua.py
${CMAKE_SOURCE_DIR}/api/mpi/__init__.py

View File

@ -6,6 +6,7 @@ SET(moo_utils_enum_headers
)
SET(mooutils_sources
mooutils/mooutils.cmake
${moo_utils_enum_headers}
mooutils/mooarray.h
mooutils/mooutils-thread.c

View File

@ -1,4 +1,5 @@
SET(plugins_sources
plugins/plugins.cmake
plugins/moofileselector-prefs.c
plugins/moofileselector.c
plugins/moofileselector.h

View File

@ -26,6 +26,8 @@ foreach(input_file
ADD_GXML(${input_file})
endforeach(input_file)
LIST(APPEND plugins_extra_files plugins/usertools/lua-tool-setup.lua)
XML2H(plugins/usertools/lua-tool-setup.lua plugins/usertools/lua-tool-setup.h LUA_TOOL_SETUP_LUA)
# EXTRA_DIST += \

View File

@ -1,4 +1,5 @@
SET(xdgmime_sources
xdgmime/xdgmime.cmake
xdgmime/xdgmimealias.c
xdgmime/xdgmimealias.h
xdgmime/xdgmime.c