From 51f087897c1a3326d15cfede64737924cad2e9ac Mon Sep 17 00:00:00 2001 From: Brendan Shanks Date: Thu, 20 Mar 2014 19:33:59 -0700 Subject: [PATCH] Detect log4cxx in top-level CMakeLists --- SDL_Core/CMakeLists.txt | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/SDL_Core/CMakeLists.txt b/SDL_Core/CMakeLists.txt index 1007e06..a604099 100644 --- a/SDL_Core/CMakeLists.txt +++ b/SDL_Core/CMakeLists.txt @@ -113,6 +113,17 @@ pkg_check_modules(GLIB2 REQUIRED glib-2.0) add_definitions(${GLIB2_CFLAGS}) endif() +# Find log4cxx +if(UNIX) + find_package(PkgConfig) + pkg_check_modules(LOG4CXX REQUIRED liblog4cxx) + include_directories(${LOG4CXX_INCLUDE_DIRS}) + link_directories(${LOG4CXX_LIBRARY_DIRS}) +elseif(WIN32) +# Add finding log4cxx here +endif(UNIX) + + # --- Interface generator find_package(PythonInterp) -- 2.7.4