Created
March 11, 2025 18:33
-
-
Save xakod/c52fba413a0e59318e0e7ee105810562 to your computer and use it in GitHub Desktop.
Visual Studio 2013 cmake toolchain file with win xp support
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set(CMAKE_SYSTEM_NAME Windows) | |
set(CMAKE_SYSTEM_VERSION 7.1) | |
set(MSVC_TOOLSET_VERSION 120) | |
set(WIN_120XP_SDK "C:/Program Files (x86)/Microsoft SDKs/Windows/v7.1A") | |
set(MSVC_120_DIR "C:/Program Files (x86)/Microsoft Visual Studio 12.0/VC") | |
find_program (MSVC_COMPILER cl | |
PATHS ${MSVC_120_DIR}/bin/amd64 NO_DEFAULT_PATH REQUIRED) | |
set(CMAKE_CXX_COMPILER ${MSVC_COMPILER}) | |
set(CMAKE_C_COMPILER ${MSVC_COMPILER}) | |
find_program (CMAKE_MT mt | |
PATHS ${WIN_120XP_SDK}/Bin/x64 NO_DEFAULT_PATH REQUIRED) | |
find_program (CMAKE_RC_COMPILER rc | |
PATHS ${WIN_120XP_SDK}/Bin/x64 NO_DEFAULT_PATH REQUIRED) | |
set(CMAKE_CXX_STANDARD_INCLUDE_DIRECTORIES ${MSVC_120_DIR}/include ${MSVC_120_DIR}/atlmfc/includ ${WIN_120XP_SDK}/include) | |
set(CMAKE_C_STANDARD_INCLUDE_DIRECTORIES ${MSVC_120_DIR}/include ${MSVC_120_DIR}/atlmfc/includ ${WIN_120XP_SDK}/include) | |
link_directories(${MSVC_120_DIR}/lib/amd64 ${MSVC_120_DIR}/atlmfc/lib/amd64 ${WIN_120XP_SDK}/Lib/x64) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment