Browse Source

configure the build files

Sven Czarnian 3 years ago
parent
commit
7addd2ab43
1 changed files with 9 additions and 0 deletions
  1. 9 0
      CMakeLists.txt

+ 9 - 0
CMakeLists.txt

@@ -35,6 +35,15 @@ IF (MSVC)
     ADD_DEFINITIONS(/D_USRDLL /D_CRT_SECURE_NO_WARNINGS)
 ENDIF ()
 
+CONFIGURE_FILE(
+    ${CMAKE_SOURCE_DIR}/version.h.in
+    ${CMAKE_BINARY_DIR}/include/version.h
+)
+CONFIGURE_FILE(
+    ${CMAKE_SOURCE_DIR}/res/ArrivalMANager.rc.in
+    ${CMAKE_BINARY_DIR}/ArrivalMANager.rc
+)
+
 # define include directories
 INCLUDE_DIRECTORIES(
     ${CMAKE_SOURCE_DIR}/include