Prechádzať zdrojové kódy

configure the build files

Sven Czarnian 3 rokov pred
rodič
commit
7addd2ab43
1 zmenil súbory, kde vykonal 9 pridanie a 0 odobranie
  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