Compile fixes.
[SquirrelJME.git] / nanocoat / rom / CMakeLists.txt
blob72a573763304c535be13426e46fc99b218eb6263
1 # ---------------------------------------------------------------------------
2 # SquirrelJME
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}")
13                 set(baseDir
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")
19                         # Indicate found
20                         message("Adding ROM ${base}...")
22                         # Add it
23                         add_subdirectory("${baseDir}")
24                 else()
25                         message("Did not find ROM ${base}...")
26                 endif()
27         endforeach()
28 endforeach()