cmake: CMake-style look for VGA lib.

git-svn-id: https://www4.informatik.uni-erlangen.de/i4svn/danceos/trunk/devel/fail@2101 8c4709b5-6ec9-48aa-a5cd-a96041d1645a
This commit is contained in:
hoffmann
2013-02-15 12:34:16 +00:00
parent 7605dfa4c4
commit 425b6e3129
2 changed files with 43 additions and 1 deletions

View File

@ -65,8 +65,14 @@ if(BUILD_BOCHS)
unset(wxWidgets_USE_DEBUG CACHE)
mark_as_advanced(wxWidgets_CONFIG_EXECUTABLE wxWidgets_wxrc_EXECUTABLE)
find_package(VGA)
if(VGA_FOUND)
set(bochs_library_dependencies ${bochs_library_dependencies} ${VGA_LIBRARIES})
endif()
# FIXME: some libraries still need to be located the "cmake way"
set(bochs_library_dependencies ${bochs_library_dependencies} -lfontconfig -lrt -lvga -lvgagl -pthread)
set(bochs_library_dependencies ${bochs_library_dependencies} -lfontconfig -lrt -lvgagl -pthread)
set(bochs_src_dir ${PROJECT_SOURCE_DIR}/simulators/bochs)