adds cmake support for starfield subdirectory

This commit is contained in:
tosh 2013-04-03 22:04:09 +02:00
parent baa0a6de12
commit 0733f06143
2 changed files with 12 additions and 0 deletions

View file

@ -40,6 +40,9 @@ configure_file(InterfaceConfig.h.in ${PROJECT_BINARY_DIR}/includes/InterfaceConf
# grab the implementation and header files from src dir # grab the implementation and header files from src dir
file(GLOB INTERFACE_SRCS src/*.mm src/*.cpp src/*.h) file(GLOB INTERFACE_SRCS src/*.mm src/*.cpp src/*.h)
# project subdirectories
add_subdirectory(src/starfield)
if (APPLE) if (APPLE)
# set how the icon shows up in the Info.plist file # set how the icon shows up in the Info.plist file
SET(MACOSX_BUNDLE_ICON_FILE interface.icns) SET(MACOSX_BUNDLE_ICON_FILE interface.icns)

View file

@ -0,0 +1,9 @@
project(starfield)
# Only headers (that are facaded by the Stars.cpp file) here -
# hence declared as custom target.
file(GLOB_RECURSE STARFIELD_SRCS *.h)
add_custom_target("starfield" SOURCES ${STARFIELD_SRCS})