2013-08-23 18:24:10 +02:00
|
|
|
|
|
|
|
# Define the current source locations
|
|
|
|
SET(CURRENT_HEADER_DIR ${CMAKE_SOURCE_DIR}/include/bootsequence)
|
|
|
|
SET(CURRENT_SOURCE_DIR ${CMAKE_SOURCE_DIR}/libsrc/bootsequence)
|
|
|
|
|
|
|
|
# Group the headers that go through the MOC compiler
|
|
|
|
SET(BootsequenceQT_HEADERS
|
2013-09-09 17:24:36 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/AbstractBootSequence.h
|
2013-08-23 18:24:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(BootsequenceHEADERS
|
2013-08-25 18:20:19 +02:00
|
|
|
${CURRENT_HEADER_DIR}/BootSequence.h
|
|
|
|
${CURRENT_HEADER_DIR}/BootSequenceFactory.h
|
2013-09-09 17:24:36 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/RainbowBootSequence.h
|
|
|
|
${CURRENT_SOURCE_DIR}/KittBootSequence.h
|
2013-08-23 18:24:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
SET(BootsequenceSOURCES
|
2013-09-09 17:24:36 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/AbstractBootSequence.cpp
|
2013-08-25 18:20:19 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/BootSequenceFactory.cpp
|
2013-08-23 18:24:10 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/RainbowBootSequence.cpp
|
2013-09-09 17:24:36 +02:00
|
|
|
${CURRENT_SOURCE_DIR}/KittBootSequence.cpp
|
2013-08-23 18:24:10 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
QT4_WRAP_CPP(BootsequenceHEADERS_MOC ${BootsequenceQT_HEADERS})
|
|
|
|
|
|
|
|
add_library(bootsequence
|
|
|
|
${BootsequenceHEADERS}
|
|
|
|
${BootsequenceQT_HEADERS}
|
|
|
|
${BootsequenceHEADERS_MOC}
|
|
|
|
${BootsequenceSOURCES}
|
|
|
|
)
|
|
|
|
|
|
|
|
target_link_libraries(bootsequence
|
|
|
|
hyperion
|
|
|
|
${QT_LIBRARIES})
|