comparison plugins/CMakeLists.txt @ 138:ff26bd33a45d

CMake: improve VS2015 support, #425
author David Demelier <markand@malikania.fr>
date Thu, 19 May 2016 13:00:00 +0200
parents 113d909fdfe1
children 6635b9187d71
comparison
equal deleted inserted replaced
137:bc291b131f6a 138:ff26bd33a45d
17 # 17 #
18 18
19 project(plugins) 19 project(plugins)
20 20
21 add_custom_target( 21 add_custom_target(
22 plugins ALL 22 all-plugins ALL
23 COMMENT "Irccd plugins" 23 COMMENT "Irccd plugins"
24 )
25
26 set_target_properties(
27 all-plugins
28 PROPERTIES
29 FOLDER meta
24 ) 30 )
25 31
26 foreach (plugin ${IRCCD_PLUGINS}) 32 foreach (plugin ${IRCCD_PLUGINS})
27 string(TOUPPER ${plugin} optname) 33 string(TOUPPER ${plugin} optname)
28 34
59 ${outputs} 65 ${outputs}
60 ${plugin}/${plugin}.js 66 ${plugin}/${plugin}.js
61 ${plugin}/${plugin}.md 67 ${plugin}/${plugin}.md
62 ) 68 )
63 69
64 add_dependencies(plugins plugin-${plugin}) 70 set_target_properties(
71 plugin-${plugin}
72 PROPERTIES
73 PROJECT_LABEL ${plugin}
74 FOLDER plugins
75 )
76
77 add_dependencies(all-plugins plugin-${plugin})
65 endif () 78 endif ()
66 endforeach () 79 endforeach ()