added config.h.in and moved some defines there
This commit is contained in:
@ -2,6 +2,10 @@ cmake_minimum_required(VERSION 2.8.8)
|
||||
|
||||
project(qjoypad)
|
||||
|
||||
set(QJOYPAD_MAJOR 4)
|
||||
set(QJOYPAD_MINOR 1)
|
||||
set(QJOYPAD_PATCH 0)
|
||||
|
||||
find_package(Qt4 REQUIRED)
|
||||
|
||||
set(DEVICE_DIR "/dev/input" CACHE PATH "Set the path where QJoyPad will look for your joystick devices. If your devices are /dev/js0, /dev/js1, etc., this should be just \"/dev\". By default, this is /dev/input.")
|
||||
@ -9,7 +13,6 @@ set(DEVICE_DIR "/dev/input" CACHE PATH "Set the path where QJoyPad will look for
|
||||
set(PLAIN_KEYS OFF CACHE BOOL "Force QJoyPad to use standard XWindows keynames without filtering them for appearance. This will make displays less attractive and readable, but will save processor power and ensure that you see the right names for keys you press.")
|
||||
|
||||
message("-- Using device directory: ${DEVICE_DIR}")
|
||||
add_definitions(-DDEVDIR="${DEVICE_DIR}")
|
||||
|
||||
if(PLAIN_KEYS)
|
||||
message("-- Using regular XWindows key names.")
|
||||
@ -30,8 +33,9 @@ endif()
|
||||
|
||||
include(${QT_USE_FILE})
|
||||
add_definitions(${QT_DEFINITIONS})
|
||||
add_definitions(-DICON24="${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/24x24/apps/qjoypad.png")
|
||||
add_definitions(-DICON64="${CMAKE_INSTALL_PREFIX}/share/icons/hicolor/64x64/apps/qjoypad.png")
|
||||
|
||||
# for config.h
|
||||
include_directories("${PROJECT_BINARY_DIR}/src")
|
||||
|
||||
add_subdirectory(icons)
|
||||
add_subdirectory(src)
|
||||
|
Reference in New Issue
Block a user