mirror of
				https://github.com/thelsing/knx.git
				synced 2025-10-26 10:26:25 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			17 lines
		
	
	
		
			532 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
			
		
		
	
	
			17 lines
		
	
	
		
			532 B
		
	
	
	
		
			CMake
		
	
	
	
	
	
| cmake_minimum_required(VERSION 3.16)
 | |
| project(knx VERSION 1.5)
 | |
| 
 | |
| add_subdirectory(pybind11)
 | |
| 
 | |
| pybind11_add_module(knxPython
 | |
| 	knxmodule.cpp
 | |
| 	)
 | |
| include_directories(src pybind11/include)
 | |
| 
 | |
| #set(outdir ${CMAKE_LIBRARY_OUTPUT_DIRECTORY})
 | |
| #set_target_properties(knx PROPERTIES LIBRARY_OUTPUT_DIRECTORY ${outdir})
 | |
| set_target_properties(knxPython PROPERTIES OUTPUT_NAME knx)
 | |
| set_property(TARGET knxPython PROPERTY CXX_STANDARD 11)
 | |
| #target_compile_definitions(knxPython PUBLIC -DMASK_VERSION=0x57B0)
 | |
| target_link_libraries(knxPython PRIVATE knx)
 |