2011-07-19 08:09:03 +00:00
|
|
|
project (qsimulat0r)
|
|
|
|
cmake_minimum_required(VERSION 2.4.0)
|
2011-07-29 05:06:50 +00:00
|
|
|
|
|
|
|
if(POLICY CMP0015)
|
|
|
|
cmake_policy(SET CMP0015 OLD)
|
|
|
|
endif(POLICY CMP0015)
|
|
|
|
|
2011-07-19 08:09:03 +00:00
|
|
|
find_package(Qt4 REQUIRED)
|
|
|
|
|
|
|
|
include_directories(${CMAKE_CURRENT_BINARY_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/../firmware ${CMAKE_CURRENT_SOURCE_DIR}/../firmware/core)
|
|
|
|
link_directories(${CMAKE_CURRENT_BINARY_DIR}
|
|
|
|
../../firmware/applications
|
|
|
|
../../firmware/filesystem
|
|
|
|
../../firmware/lcd
|
2011-07-20 05:59:35 +00:00
|
|
|
../../firmware/funk
|
|
|
|
../../firmware/basic
|
|
|
|
../../firmware/core
|
|
|
|
../../firmware/usbcdc
|
2011-07-19 08:09:03 +00:00
|
|
|
../../firmware/usb)
|
|
|
|
|
|
|
|
include(${QT_USE_FILE})
|
|
|
|
set(qsimulat0r_SRCS
|
|
|
|
qsimulat0r.cc
|
|
|
|
simulat0rthread.cc
|
|
|
|
)
|
|
|
|
|
|
|
|
set(MocHeaders
|
|
|
|
simulat0rthread.h
|
|
|
|
)
|
|
|
|
|
|
|
|
qt4_automoc(${MocHeaders})
|
|
|
|
|
|
|
|
QT_WRAP_CPP(qsimulat0r MocSources ${qsimulat0r_SRCS})
|
|
|
|
|
|
|
|
|
|
|
|
set(FIRMWARE_OBJS
|
|
|
|
../simcore/simcore.o
|
|
|
|
../simcore/misc.o
|
2011-07-25 06:34:03 +00:00
|
|
|
../simcore/timecounter.o
|
2011-08-04 12:13:02 +00:00
|
|
|
../firmware/table.o
|
2011-07-19 08:09:03 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
|
|
|
|
SET_SOURCE_FILES_PROPERTIES(${FIRMWARE_OBJS} PROPERTIES
|
|
|
|
GENERATED TRUE
|
|
|
|
EXTERNAL_OBJECT TRUE
|
|
|
|
OBJECT_DEPENDS TRUE
|
|
|
|
)
|
|
|
|
|
|
|
|
add_executable(qsimulat0r ${qsimulat0r_SRCS} ${MocSources}
|
|
|
|
${FIRMWARE_OBJS}
|
|
|
|
)
|
|
|
|
|
2011-07-20 05:59:35 +00:00
|
|
|
target_link_libraries(qsimulat0r
|
|
|
|
${QT_LIBRARIES}
|
|
|
|
libapp.a
|
|
|
|
liblcd.a
|
|
|
|
libusb.a
|
|
|
|
libfat.a
|
|
|
|
libfunk.a
|
|
|
|
libusbcdc.a
|
|
|
|
libbasic.a
|
|
|
|
libcore.a
|
2011-07-29 05:06:50 +00:00
|
|
|
|
|
|
|
liblcd.a
|
|
|
|
|
2011-07-20 05:59:35 +00:00
|
|
|
)
|
2011-07-19 08:09:03 +00:00
|
|
|
|
|
|
|
|
|
|
|
|