mirror of
				https://git.familie-radermacher.ch/linux/ptouch-print.git
				synced 2025-10-29 19:32:44 +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) | ||||
| project(ptouch_print C) | ||||
| project(ptouch-print C) | ||||
| 
 | ||||
| # Configure CMake | ||||
| 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) | ||||
| 
 | ||||
| # Configure project executable | ||||
| add_executable(ptouch_print) | ||||
| add_executable(ptouch-print) | ||||
| 
 | ||||
| target_sources(ptouch_print | ||||
| target_sources(ptouch-print | ||||
|     PUBLIC | ||||
|         include/ptouch.h | ||||
|     PRIVATE | ||||
| @ -28,7 +28,7 @@ target_sources(ptouch_print | ||||
| ) | ||||
| 
 | ||||
| # Configure compiler | ||||
| target_compile_options(ptouch_print | ||||
| target_compile_options(ptouch-print | ||||
|     PRIVATE | ||||
|         -g | ||||
|         -Wall | ||||
| @ -38,7 +38,7 @@ target_compile_options(ptouch_print | ||||
|         -fPIC | ||||
| ) | ||||
| 
 | ||||
| target_compile_definitions(ptouch_print | ||||
| target_compile_definitions(ptouch-print | ||||
|     PRIVATE | ||||
|         LOCALEDIR="${CMAKE_INSTALL_LOCALEDIR}" | ||||
|         USING_CMAKE=1 | ||||
| @ -47,7 +47,7 @@ target_compile_definitions(ptouch_print | ||||
| 
 | ||||
| ) | ||||
| 
 | ||||
| target_include_directories(ptouch_print | ||||
| target_include_directories(ptouch-print | ||||
|     PRIVATE | ||||
|         include | ||||
|         ${GD_INCLUDE_DIR} | ||||
| @ -55,7 +55,7 @@ target_include_directories(ptouch_print | ||||
| ) | ||||
| 
 | ||||
| # Configure linker | ||||
| target_link_libraries(ptouch_print | ||||
| target_link_libraries(ptouch-print | ||||
|         ${GD_LIBRARIES} | ||||
|         ${LIBUSB_LIBRARIES} | ||||
| ) | ||||
| ) | ||||
|  | ||||
| @ -26,7 +26,7 @@ | ||||
| #include <sys/stat.h>	/* open() */ | ||||
| #include <fcntl.h>	/* open() */ | ||||
| #include <time.h>	/* nanosleep(), struct timespec */ | ||||
| #include "config.h" | ||||
| //#include "config.h"
 | ||||
| #include "gettext.h"	/* gettext(), ngettext() */ | ||||
| #include "ptouch.h" | ||||
| 
 | ||||
|  | ||||
| @ -25,7 +25,8 @@ | ||||
| #include <sys/stat.h>	/* open() */ | ||||
| #include <fcntl.h>	/* open() */ | ||||
| #include <gd.h> | ||||
| #include "config.h" | ||||
| //#include "config.h"
 | ||||
| #include <locale.h> | ||||
| #include "gettext.h"	/* gettext(), ngettext() */ | ||||
| #include "ptouch.h" | ||||
| 
 | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Dominic Radermacher
						Dominic Radermacher