Commit cc4bc578 authored by Jan Möbius's avatar Jan Möbius

Windows finder i8 subdir search


git-svn-id: http://www.openflipper.org/svnrepo/CoMISo/trunk@288 1355f012-dd97-4b2f-ae87-10fa9f823a57
parent d7a8702b
......@@ -4,6 +4,17 @@
# CBC_INCLUDE_DIRS - The CBC include directories
# CBC_LIBRARIES - The libraries needed to use CBC
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
if (CBC_INCLUDE_DIR)
# in cache already
set(CBC_FOUND TRUE)
......@@ -16,6 +27,7 @@ find_path(CBC_INCLUDE_DIR
PATHS "$ENV{CBC_DIR}/include/coin"
"/usr/include/coin"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Cbc\\include"
)
find_library( CBC_LIBRARY
......@@ -25,6 +37,7 @@ find_library( CBC_LIBRARY
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Cbc\\lib"
)
find_library( CBC_SOLVER_LIBRARY
......@@ -34,6 +47,7 @@ find_library( CBC_SOLVER_LIBRARY
"/usr/lib"
"/usr/lib/coin"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Cbc\\lib"
)
set(CBC_INCLUDE_DIRS "${CBC_INCLUDE_DIR}" )
......
......@@ -4,6 +4,17 @@
# CGL_INCLUDE_DIRS - The CGL include directories
# CGL_LIBRARIES - The libraries needed to use CGL
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
if (CGL_INCLUDE_DIR)
# in cache already
set(CGL_FOUND TRUE)
......@@ -18,6 +29,7 @@ find_path(CGL_INCLUDE_DIR
"/usr/include/coin"
"C:\\libs\\cgl\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Cgl\\include"
)
find_library( CGL_LIBRARY
......@@ -29,6 +41,7 @@ find_library( CGL_LIBRARY
"/usr/lib/coin"
"C:\\libs\\cgl\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Cgl\\lib"
)
set(CGL_INCLUDE_DIRS "${CGL_INCLUDE_DIR}" )
......
......@@ -4,6 +4,18 @@
# CLP_INCLUDE_DIRS - The CLP include directories
# CLP_LIBRARIES - The libraries needed to use CLP
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
if (CLP_INCLUDE_DIR)
# in cache already
set(CLP_FOUND TRUE)
......@@ -18,6 +30,7 @@ find_path(CLP_INCLUDE_DIR
"/usr/include/coin"
"C:\\libs\\clp\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Clp\\include"
)
find_library( CLP_LIBRARY
......@@ -29,6 +42,7 @@ find_library( CLP_LIBRARY
"/usr/lib/coin"
"C:\\libs\\clp\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Clp\\lib"
)
set(CLP_INCLUDE_DIRS "${CLP_INCLUDE_DIR}" )
......
......@@ -4,6 +4,17 @@
# COINUTILS_INCLUDE_DIRS - The COINUTILS include directories
# COINUTILS_LIBRARIES - The libraries needed to use COINUTILS
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
if (COINUTILS_INCLUDE_DIR)
# in cache already
set(COINUTILS_FOUND TRUE)
......@@ -18,6 +29,7 @@ find_path(COINUTILS_INCLUDE_DIR
"/usr/include/coin"
"C:\\libs\\coinutils\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\CoinUtils\\include"
)
find_library( COINUTILS_LIBRARY
......@@ -29,6 +41,7 @@ find_library( COINUTILS_LIBRARY
"/usr/lib/coin"
"C:\\libs\\coinutils\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\CoinUtils\\include"
)
set(COINUTILS_INCLUDE_DIRS "${COINUTILS_INCLUDE_DIR}" )
......
......@@ -4,6 +4,18 @@
# OSI_INCLUDE_DIRS - The OSI include directories
# OSI_LIBRARIES - The libraries needed to use OSI
# I8 Search paths for windows libraries
if ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 11.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2012/x32/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*Win64" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x64/")
elseif ( CMAKE_GENERATOR MATCHES "^Visual Studio 12.*" )
SET(VS_SEARCH_PATH "c:/libs/vs2013/x32/")
endif()
if (OSI_INCLUDE_DIR)
# in cache already
set(OSI_FOUND TRUE)
......@@ -18,6 +30,7 @@ find_path(OSI_INCLUDE_DIR
"/usr/include/coin"
"C:\\libs\\osi\\include"
"C:\\libs\\cbc\\include"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Osi\\include"
)
find_library( OSI_LIBRARY
......@@ -29,6 +42,7 @@ find_library( OSI_LIBRARY
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Osi\\lib"
)
find_library( OSI_CBC_LIBRARY
......@@ -40,6 +54,7 @@ find_library( OSI_CBC_LIBRARY
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Osi\\lib"
)
find_library( OSI_CLP_LIBRARY
......@@ -51,6 +66,7 @@ find_library( OSI_CLP_LIBRARY
"/usr/lib/coin"
"C:\\libs\\OSI\\lib"
"C:\\libs\\cbc\\lib"
"${VS_SEARCH_PATH}\\CBC-2.9.4\\Osi\\lib"
)
set(OSI_INCLUDE_DIRS "${OSI_INCLUDE_DIR}" )
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment