-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated installation method for lovers of Microsoft Visual Studio (20…
…17) (#559) * Update all CMakeLists.txt for msvc Help msvc find pcre.h. Manually grab some DLLs and put them into the ivan build folder. Added a couple of new flags: VCPKG_DLL_BINARY_DIRECTORY - this is where the dlls can be found for the vcpkg suite. Should be something like "C:\tools\cpkg\installed\x86-windows\bin". MSVC_HIDE_CONSOLE_WINDOW - Set this to "ON" to hide the console window for an MSVC build of ivan. HAVE_CXX14 - MSVC 2017 will complain about a certain function already being defined in C++14. Set this flag to "ON" to work around that. * Add missing commas in some macros * Make some ints into cints * Update Ivan.rc with windows.h * Add missing quotes in FeLib/CMakeLists.txt * Add FindPCRE.cmake * Remove VCPKG_DLL_BINARY_DIRECTORY Replace this with vcpkg native stuff in CMake * Add CMakeSettings.json Not sure if this is good practice to just chuck this in the repo, but what the hey. * Update INSTALL Updated installation instructions for lovers of Microsoft Visual Studio (2017)
- Loading branch information
Showing
12 changed files
with
129 additions
and
30 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"configurations": [ | ||
{ | ||
"name": "x86-Release", | ||
"generator": "Visual Studio 15 2017", | ||
"configurationType": "Release", | ||
"inheritEnvironments": [ | ||
"msvc_x86" | ||
], | ||
"buildRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\build\\${name}", | ||
"installRoot": "${env.USERPROFILE}\\CMakeBuilds\\${workspaceHash}\\install\\${name}", | ||
"cmakeCommandArgs": "-DHAVE_CXX14=ON, -DWIZARD=ON, -DMSVC_HIDE_CONSOLE_WINDOW=ON", | ||
"buildCommandArgs": "", | ||
"ctestCommandArgs": "", | ||
"variables": [ | ||
{ | ||
"name": "CMAKE_TOOLCHAIN_FILE", | ||
"value": "C:\\tools\\vcpkg\\scripts\\buildsystems\\vcpkg.cmake" | ||
} | ||
] | ||
} | ||
] | ||
} |
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# Copyright (C) 2007-2009 LuaDist. | ||
# Created by Peter Kapec <[email protected]> | ||
# Redistribution and use of this file is allowed according to the terms of the MIT license. | ||
# For details see the COPYRIGHT file distributed with LuaDist. | ||
# Note: | ||
# Searching headers and libraries is very simple and is NOT as powerful as scripts | ||
# distributed with CMake, because LuaDist defines directories to search for. | ||
# Everyone is encouraged to contact the author with improvements. Maybe this file | ||
# becomes part of CMake distribution sometimes. | ||
|
||
# - Find pcre | ||
# Find the native PCRE headers and libraries. | ||
# | ||
# PCRE_INCLUDE_DIRS - where to find pcre.h, etc. | ||
# PCRE_LIBRARIES - List of libraries when using pcre. | ||
# PCRE_FOUND - True if pcre found. | ||
|
||
# Look for the header file. | ||
FIND_PATH(PCRE_INCLUDE_DIR NAMES pcre.h) | ||
|
||
# Look for the library. | ||
FIND_LIBRARY(PCRE_LIBRARY NAMES pcre) | ||
|
||
# Handle the QUIETLY and REQUIRED arguments and set PCRE_FOUND to TRUE if all listed variables are TRUE. | ||
INCLUDE(FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(PCRE DEFAULT_MSG PCRE_LIBRARY PCRE_INCLUDE_DIR) | ||
|
||
# Copy the results to the output variables. | ||
IF(PCRE_FOUND) | ||
SET(PCRE_LIBRARIES ${PCRE_LIBRARY}) | ||
SET(PCRE_INCLUDE_DIRS ${PCRE_INCLUDE_DIR}) | ||
ELSE(PCRE_FOUND) | ||
SET(PCRE_LIBRARIES) | ||
SET(PCRE_INCLUDE_DIRS) | ||
ENDIF(PCRE_FOUND) | ||
|
||
MARK_AS_ADVANCED(PCRE_INCLUDE_DIRS PCRE_LIBRARIES) |
This file contains 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