1 # ---------------------------------------------------------------------------
3 # Copyright (C) Stephanie Gawroriski <xer@multiphasicapps.net>
4 # ---------------------------------------------------------------------------
5 # SquirrelJME is under the Mozilla Public License Version 2.0.
6 # See license.mkd for licensing and copyright information.
7 # ---------------------------------------------------------------------------
9 # Look for default ROM configurations in a basic order
10 foreach(checkClutterLevel "debug" "release")
11 foreach(checkSourceSet "main" "testFixtures" "test")
12 set(base "${checkSourceSet}_${checkClutterLevel}")
14 "${CMAKE_CURRENT_SOURCE_DIR}/specific/${base}")
16 # Does it actually exist and contains a CMakeLists?
17 if(IS_DIRECTORY "${baseDir}" AND
18 EXISTS "${baseDir}/CMakeLists.txt")
20 message("Adding ROM ${base}...")
23 add_subdirectory("${baseDir}")
25 message("Did not find ROM ${base}...")