[Kst] branches/work/kst/portto4/kst/cmake/modules

Peter Kümmel syntheticpp at gmx.net
Fri Mar 18 23:27:27 CET 2011


SVN commit 1225255 by kuemmel:

show .cpp and .h side-by-side in Studio when build with as merged files

 M  +6 -2      KstMacros.cmake  


--- branches/work/kst/portto4/kst/cmake/modules/KstMacros.cmake #1225254:1225255
@@ -106,13 +106,17 @@
 		set_source_files_properties(merged_const.cpp   PROPERTIES OBJECT_DEPENDS "${depends_moc_uic}")
 		set_source_files_properties(merged_touched.cpp PROPERTIES OBJECT_DEPENDS "${depends_moc_uic}")
 		add_library(${kst_name} ${type} ${merged_files} ${kst_${kst_name}_dont_merge} ${kst_${kst_name}_headers} ${kst_${kst_name}_uis} ${kst_${kst_name}_sources_not_generated} ${svnversion_h})
-		kst_add_info_files(Headers/Sources ${kst_${kst_name}_sources_not_generated})
+		foreach(_it ${kst_${kst_name}_sources_not_generated})
+			set_source_files_properties(${_it} PROPERTIES HEADER_FILE_ONLY TRUE)
+		endforeach()
+		source_group("Source Files" Files)
+		source_group("Header Files" Files)
 	else()
 		add_library(${kst_name} ${type} ${kst_${kst_name}_sources} ${kst_${kst_name}_headers} ${svnversion_h})
+		kst_flat_source_group(${kst_${kst_name}_headers} ${kst_${kst_name}_sources_not_generated})
 	endif()
 	set_property(TARGET ${kst_name} PROPERTY DEBUG_POSTFIX ${kst_debug_postfix})
 	set_target_properties(${kst_name} PROPERTIES VERSION ${kst_version} SOVERSION ${kst_version_major})
-	kst_flat_source_group(${kst_${kst_name}_headers} ${kst_${kst_name}_sources_not_generated})
 	kst_revision_add_dependency()
 	if(WIN32)
 		if(NOT ${type} STREQUAL "STATIC")


More information about the Kst mailing list