diff --git a/interface/CMakeLists.txt b/interface/CMakeLists.txt index 3f174c7494..ebd376daaf 100644 --- a/interface/CMakeLists.txt +++ b/interface/CMakeLists.txt @@ -40,6 +40,9 @@ configure_file(InterfaceConfig.h.in ${PROJECT_BINARY_DIR}/includes/InterfaceConf # grab the implementation and header files from src dir file(GLOB INTERFACE_SRCS src/*.mm src/*.cpp src/*.h) +# project subdirectories +add_subdirectory(src/starfield) + if (APPLE) # set how the icon shows up in the Info.plist file SET(MACOSX_BUNDLE_ICON_FILE interface.icns) diff --git a/interface/src/starfield/CMakeLists.txt b/interface/src/starfield/CMakeLists.txt new file mode 100644 index 0000000000..1cd1dd34c5 --- /dev/null +++ b/interface/src/starfield/CMakeLists.txt @@ -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}) +