Skip to content

Commit

Permalink
cmake: improve FindOGDF script
Browse files Browse the repository at this point in the history
  • Loading branch information
wisk committed Apr 24, 2014
1 parent a5ede6c commit 85ea492
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions cmake/FindOGDF.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -6,22 +6,26 @@ set(OGDF_INCLUDE_DIRS ${OGDF_PATH}/include)

find_library(COIN_LIBRARY_RELEASE
NAMES coin COIN
PATHS ${OGDF_PATH} ${OGDF_PATH}/Win32/Release ${OGDF_PATH}/x64/Release ${OGDF_PATH}/_release
PATHS ${OGDF_PATH}
PATH_SUFFIXES build build/Release Release Win32/Release x64/Release _release
)

find_library(OGDF_LIBRARY_RELEASE
NAMES ogdf OGDF
PATHS ${OGDF_PATH} ${OGDF_PATH}/Win32/Release ${OGDF_PATH}/x64/Release ${OGDF_PATH}/_release
PATHS ${OGDF_PATH}
PATH_SUFFIXES build build/Release Release Win32/Release x64/Release _release
)

find_library(COIN_LIBRARY_DEBUG
NAMES coin COIN
PATHS ${OGDF_PATH} ${OGDF_PATH}/Win32/Debug ${OGDF_PATH}/x64/Debug ${OGDF_PATH}/_debug
PATHS ${OGDF_PATH}
PATH_SUFFIXES build build/Debug Debug Win32/Debug x64/Debug _debug
)

find_library(OGDF_LIBRARY_DEBUG
NAMES ogdf OGDF
PATHS ${OGDF_PATH} ${OGDF_PATH}/Win32/Debug ${OGDF_PATH}/x64/Debug ${OGDF_PATH}/_debug
PATHS ${OGDF_PATH}
PATH_SUFFIXES build build/Debug Debug Win32/Debug x64/Debug _debug
)

set(OGDF_LIBRARIES optimized ${OGDF_LIBRARY_RELEASE} optimized ${COIN_LIBRARY_RELEASE} debug ${OGDF_LIBRARY_DEBUG} debug ${COIN_LIBRARY_DEBUG})

0 comments on commit 85ea492

Please sign in to comment.