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) target_link_libraries(${TARGET} comctl32.lib Wtsapi32.lib) 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")