Skip to content

Commit

Permalink
Version 0.5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
epinter committed Apr 26, 2024
1 parent 1e76b13 commit 2dd709d
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 2 deletions.
8 changes: 7 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,18 @@ cmake_minimum_required(VERSION 3.21)

project(
"rainmeter_lhws"
VERSION 0.2.0
VERSION 0.5.0
LANGUAGES CXX)
set(PROJECT_LICENSE "MPL-2.0")
set(PROJECT_FRIENDLY_NAME ${PROJECT_NAME})
set(PROJECT_LONG_NAME "rainmeter_lhws")
set(PROJECT_COPYRIGHT "Emerson Pinter")
set(PROJECT_DESCRIPTION "LibreHardwareService plugin for Rainmeter")

configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/cmake/version.rc.in
${CMAKE_CURRENT_BINARY_DIR}/cmake/version.rc
@ONLY)

set_property(GLOBAL PROPERTY USE_FOLDERS ON)
add_subdirectory(src)
33 changes: 33 additions & 0 deletions cmake/version.rc.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
#include <winres.h>

1 VERSIONINFO
FILEVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0
PRODUCTVERSION @PROJECT_VERSION_MAJOR@, @PROJECT_VERSION_MINOR@, @PROJECT_VERSION_PATCH@, 0
FILEFLAGSMASK 0x17L
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x4L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "040904b0"
BEGIN
VALUE "FileDescription", "@PROJECT_DESCRIPTION@"
VALUE "FileVersion", "@PROJECT_VERSION@"
VALUE "InternalName", "@PROJECT_NAME@"
VALUE "LegalCopyright", "@PROJECT_COPYRIGHT@"
VALUE "License", "@PROJECT_LICENSE@"
VALUE "ProductName", "@PROJECT_NAME@"
VALUE "ProductVersion", "@PROJECT_VERSION@"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x409, 1200
END
END
6 changes: 5 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,11 @@ set(MAINTARGET "${MAINTARGET}" PARENT_SCOPE)

message("TARGET=${MAINTARGET}")

set(SOURCE_FILES Plugin.cpp Measure.cpp API.cpp RtssAppStat.cpp)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/bin)
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/lib)

set(SOURCE_FILES Plugin.cpp Measure.cpp API.cpp RtssAppStat.cpp ${CMAKE_BINARY_DIR}/cmake/version.rc)

add_library(${MAINTARGET} SHARED ${SOURCE_FILES})

Expand Down

0 comments on commit 2dd709d

Please sign in to comment.