mirror of
https://git.familie-radermacher.ch/linux/ptouch-print.git
synced 2025-05-13 23:32:59 +00:00
fix naming and try to fix compile errors related to config.h (generated by autotools)
This commit is contained in:
parent
679c51859b
commit
8655736e75
@ -1,5 +1,5 @@
|
|||||||
cmake_minimum_required(VERSION 3.15)
|
cmake_minimum_required(VERSION 3.15)
|
||||||
project(ptouch_print C)
|
project(ptouch-print C)
|
||||||
|
|
||||||
# Configure CMake
|
# Configure CMake
|
||||||
set(CMAKE_C_STANDARD 11)
|
set(CMAKE_C_STANDARD 11)
|
||||||
@ -16,9 +16,9 @@ pkg_check_modules(LIBUSB REQUIRED libusb-1.0)
|
|||||||
execute_process(COMMAND bash "${CMAKE_CURRENT_LIST_DIR}/build-aux/git-version-gen" OUTPUT_VARIABLE VERSION)
|
execute_process(COMMAND bash "${CMAKE_CURRENT_LIST_DIR}/build-aux/git-version-gen" OUTPUT_VARIABLE VERSION)
|
||||||
|
|
||||||
# Configure project executable
|
# Configure project executable
|
||||||
add_executable(ptouch_print)
|
add_executable(ptouch-print)
|
||||||
|
|
||||||
target_sources(ptouch_print
|
target_sources(ptouch-print
|
||||||
PUBLIC
|
PUBLIC
|
||||||
include/ptouch.h
|
include/ptouch.h
|
||||||
PRIVATE
|
PRIVATE
|
||||||
@ -28,7 +28,7 @@ target_sources(ptouch_print
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Configure compiler
|
# Configure compiler
|
||||||
target_compile_options(ptouch_print
|
target_compile_options(ptouch-print
|
||||||
PRIVATE
|
PRIVATE
|
||||||
-g
|
-g
|
||||||
-Wall
|
-Wall
|
||||||
@ -38,7 +38,7 @@ target_compile_options(ptouch_print
|
|||||||
-fPIC
|
-fPIC
|
||||||
)
|
)
|
||||||
|
|
||||||
target_compile_definitions(ptouch_print
|
target_compile_definitions(ptouch-print
|
||||||
PRIVATE
|
PRIVATE
|
||||||
LOCALEDIR="${CMAKE_INSTALL_LOCALEDIR}"
|
LOCALEDIR="${CMAKE_INSTALL_LOCALEDIR}"
|
||||||
USING_CMAKE=1
|
USING_CMAKE=1
|
||||||
@ -47,7 +47,7 @@ target_compile_definitions(ptouch_print
|
|||||||
|
|
||||||
)
|
)
|
||||||
|
|
||||||
target_include_directories(ptouch_print
|
target_include_directories(ptouch-print
|
||||||
PRIVATE
|
PRIVATE
|
||||||
include
|
include
|
||||||
${GD_INCLUDE_DIR}
|
${GD_INCLUDE_DIR}
|
||||||
@ -55,7 +55,7 @@ target_include_directories(ptouch_print
|
|||||||
)
|
)
|
||||||
|
|
||||||
# Configure linker
|
# Configure linker
|
||||||
target_link_libraries(ptouch_print
|
target_link_libraries(ptouch-print
|
||||||
${GD_LIBRARIES}
|
${GD_LIBRARIES}
|
||||||
${LIBUSB_LIBRARIES}
|
${LIBUSB_LIBRARIES}
|
||||||
)
|
)
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
#include <sys/stat.h> /* open() */
|
#include <sys/stat.h> /* open() */
|
||||||
#include <fcntl.h> /* open() */
|
#include <fcntl.h> /* open() */
|
||||||
#include <time.h> /* nanosleep(), struct timespec */
|
#include <time.h> /* nanosleep(), struct timespec */
|
||||||
#include "config.h"
|
//#include "config.h"
|
||||||
#include "gettext.h" /* gettext(), ngettext() */
|
#include "gettext.h" /* gettext(), ngettext() */
|
||||||
#include "ptouch.h"
|
#include "ptouch.h"
|
||||||
|
|
||||||
|
@ -25,7 +25,8 @@
|
|||||||
#include <sys/stat.h> /* open() */
|
#include <sys/stat.h> /* open() */
|
||||||
#include <fcntl.h> /* open() */
|
#include <fcntl.h> /* open() */
|
||||||
#include <gd.h>
|
#include <gd.h>
|
||||||
#include "config.h"
|
//#include "config.h"
|
||||||
|
#include <locale.h>
|
||||||
#include "gettext.h" /* gettext(), ngettext() */
|
#include "gettext.h" /* gettext(), ngettext() */
|
||||||
#include "ptouch.h"
|
#include "ptouch.h"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user