diff options
Diffstat (limited to 'src/mir_core')
-rw-r--r-- | src/mir_core/CMakeLists.txt | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/mir_core/CMakeLists.txt b/src/mir_core/CMakeLists.txt index aaaacf1312..d9ad3b5ba2 100644 --- a/src/mir_core/CMakeLists.txt +++ b/src/mir_core/CMakeLists.txt @@ -1,5 +1,11 @@ -file(GLOB SOURCES "src/*.h" "src/*.cpp" "src/mir_core.def") +file(GLOB SOURCES "src/*.h" "src/*.cpp") +if(CMAKE_CL_64) + list(APPEND SOURCES "src/mir_core64.def") +else() + list(APPEND SOURCES "src/mir_core.def") +endif() set(TARGET mir_core) include(${CMAKE_SOURCE_DIR}/cmake/lib.cmake) -set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "MIR_CORE_EXPORTS")
\ No newline at end of file +set_target_properties(${TARGET} PROPERTIES COMPILE_DEFINITIONS "MIR_CORE_EXPORTS") +add_custom_command(TARGET ${TARGET} PRE_BUILD COMMAND "${CMAKE_SOURCE_DIR}/build/make_ver.bat")
\ No newline at end of file |