+
+set(HEADERS
+ fg_commands.hxx
+ fg_init.hxx
+ fg_io.hxx
+ fg_props.hxx
+ globals.hxx
+ locale.hxx
+ logger.hxx
+ main.hxx
+ options.hxx
+ util.hxx
+ positioninit.hxx
+ subsystemFactory.hxx
+ )
+
+get_property(FG_SOURCES GLOBAL PROPERTY FG_SOURCES)
+get_property(FG_HEADERS GLOBAL PROPERTY FG_HEADERS)
+
+link_directories ( ${Boost_LIBRARY_DIRS} )
+
+get_property(FG_GROUPS_C GLOBAL PROPERTY FG_GROUPS_C)
+string(REPLACE "@" ";" groups ${FG_GROUPS_C} )
+foreach(g ${groups})
+ string(REPLACE "#" ";" g2 ${g})
+ list(GET g2 0 name)
+ list(REMOVE_AT g2 0)
+ source_group("${name}\\Sources" FILES ${g2})
+endforeach()
+
+get_property(FG_GROUPS_H GLOBAL PROPERTY FG_GROUPS_H)
+string(REPLACE "@" ";" groups ${FG_GROUPS_H} )
+foreach(g ${groups})
+ string(REPLACE "#" ";" g2 ${g})
+ list(GET g2 0 name)
+ list(REMOVE_AT g2 0)
+ source_group("${name}\\Headers" FILES ${g2})
+endforeach()
+
+source_group("Main\\Headers" FILES ${HEADERS})
+source_group("Main\\Sources" FILES ${SOURCES})
+add_executable(fgfs ${SOURCES} ${FG_SOURCES} ${FG_HEADERS} ${HEADERS})
+
+# disable sqlite3 dynamic lib support
+# this should really be a SOURCE property, but the way we handle
+# Fcomponent sources is making that tricky
+add_definitions(-DSQLITE_OMIT_LOAD_EXTENSION)