More header documentation.
[planlOS.git] / CMakeLists.txt
blobc2c4a9fe03faf34f57a71e049bd587971021ba56
2 cmake_minimum_required(VERSION 2.6)
4 project(planlOS C ASM-ATT)
6 set(OBJECTS)
7 macro(add_object name)
8         set(OBJECTS ${OBJECTS} ${name} PARENT_SCOPE)
9         set(OBJECTS ${OBJECTS} ${name})
10 endmacro(add_object name)
12 add_subdirectory(system)
13 add_subdirectory(programs)
14 add_subdirectory(shared)
16 # Images
17 add_custom_command(OUTPUT build/floppy.img COMMAND sh build/makefloppy.sh DEPENDS ${OBJECTS})
18 add_custom_command(OUTPUT build/cdrom.img COMMAND sh build/makecdrom.sh DEPENDS ${OBJECTS})
19 add_custom_target(floppyimg ALL DEPENDS build/floppy.img)
20 add_custom_target(cdromimg ALL DEPENDS build/cdrom.img)