ported build system to cmake

This commit is contained in:
Mathias Panzenböck
2014-02-15 03:54:28 +01:00
parent 6fa91c4529
commit 5ca0712af2
8 changed files with 130 additions and 128 deletions

47
src/CMakeLists.txt Normal file
View File

@ -0,0 +1,47 @@
set(qjoypad_SOURCES
axis.cpp
axis_edit.cpp
axisw.cpp
button.cpp
button_edit.cpp
buttonw.cpp
event.cpp
flash.cpp
getkey.cpp
icon.cpp
joypad.cpp
joypadw.cpp
joyslider.cpp
keycode.cpp
layout.cpp
layout_edit.cpp
main.cpp
quickset.cpp)
set(qjoypad_HEADERS
axis_edit.h
axis.h
axisw.h
button_edit.h
button.h
buttonw.h
constant.h
device.h
error.h
event.h
flash.h
getkey.h
icon.h
joypad.h
joypadw.h
joyslider.h
keycode.h
layout_edit.h
layout.h
quickset.h)
QT4_WRAP_CPP(qjoypad_HEADERS_MOC ${qjoypad_HEADERS})
add_executable(qjoypad ${qjoypad_SOURCES} ${qjoypad_HEADERS_MOC})
target_link_libraries(qjoypad ${QT_LIBRARIES} Xtst X11)
install(TARGETS qjoypad RUNTIME DESTINATION "bin")