|
@@ -6,24 +6,25 @@ cmake_minimum_required( VERSION 3.3 )
|
|
|
#######################################
|
|
#######################################
|
|
|
# Project name #
|
|
# Project name #
|
|
|
#######################################
|
|
#######################################
|
|
|
-project( OpENer C )
|
|
|
|
|
|
|
+project( OpENer LANGUAGES C VERSION 2.3 )
|
|
|
|
|
|
|
|
#######################################
|
|
#######################################
|
|
|
# Project version #
|
|
# Project version #
|
|
|
#######################################
|
|
#######################################
|
|
|
-if( DEFINED OpENer_Device_Config_Vendor_Id )
|
|
|
|
|
- message("!!!! OpENer_Device_Config_Vendor_Id IS DEFINED !!!!:" ${OpENer_Device_Config_Vendor_Id})
|
|
|
|
|
-else()
|
|
|
|
|
|
|
+
|
|
|
|
|
+if( NOT DEFINED OpENer_Device_Config_Vendor_Id )
|
|
|
set( OpENer_Device_Config_Vendor_Id 1 CACHE STRING "Device Vendor ID" )
|
|
set( OpENer_Device_Config_Vendor_Id 1 CACHE STRING "Device Vendor ID" )
|
|
|
|
|
+endif()
|
|
|
|
|
+if( NOT DEFINED OpENer_Device_Config_Device_Type )
|
|
|
set( OpENer_Device_Config_Device_Type 12 CACHE STRING "Device Type ID" )
|
|
set( OpENer_Device_Config_Device_Type 12 CACHE STRING "Device Type ID" )
|
|
|
|
|
+endif()
|
|
|
|
|
+if( NOT DEFINED OpENer_Device_Config_Product_Code )
|
|
|
set( OpENer_Device_Config_Product_Code 65001 CACHE STRING "Device Product Code" )
|
|
set( OpENer_Device_Config_Product_Code 65001 CACHE STRING "Device Product Code" )
|
|
|
|
|
+endif()
|
|
|
|
|
+if( NOT DEFINED OpENer_Device_Config_Device_Name )
|
|
|
set( OpENer_Device_Config_Device_Name "OpENer PC" CACHE STRING "Device Name" )
|
|
set( OpENer_Device_Config_Device_Name "OpENer PC" CACHE STRING "Device Name" )
|
|
|
- set( OpENer_VERSION_MAJOR 2 CACHE STRING "Major Version" )
|
|
|
|
|
- set( OpENer_VERSION_MINOR 3 CACHE STRING "Minor Version" )
|
|
|
|
|
endif()
|
|
endif()
|
|
|
|
|
|
|
|
-message("!!!! OpENer_VERSION_MAJOR:" ${OpENer_VERSION_MAJOR})
|
|
|
|
|
-
|
|
|
|
|
configure_file(
|
|
configure_file(
|
|
|
"${PROJECT_SOURCE_DIR}/src/ports/devicedata.h.in"
|
|
"${PROJECT_SOURCE_DIR}/src/ports/devicedata.h.in"
|
|
|
"${PROJECT_BINARY_DIR}/src/ports/devicedata.h"
|
|
"${PROJECT_BINARY_DIR}/src/ports/devicedata.h"
|