From f4629fa35a791c2a764cf13d05748b6d3836d22d Mon Sep 17 00:00:00 2001 From: Pavel Krajcevski Date: Sun, 27 Jan 2013 10:33:41 -0500 Subject: [PATCH] Add boost libraries for windows. --- Core/CMakeLists.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/Core/CMakeLists.txt b/Core/CMakeLists.txt index 54f0bbe..68681dd 100644 --- a/Core/CMakeLists.txt +++ b/Core/CMakeLists.txt @@ -39,6 +39,13 @@ INCLUDE_DIRECTORIES( ${TexC_SOURCE_DIR}/Core/include ) SET( THREAD_API ) SET( THREAD_APIS_AVAILABLE "None" ) +###### Find Boost... + +IF( MSVC ) + SET(ENV{BOOSTLIBDIR} "${MSVC_LIB_DIR}") + SET(ENV{BOOSTINCLUDEDIR} "${MSVC_INSTALL_PATH}/include") +ENDIF( MSVC ) + SET( Boost_USE_STATIC_LIBS ON ) FIND_PACKAGE( Boost COMPONENTS thread system date_time chrono ) IF( Boost_FOUND ) @@ -50,6 +57,8 @@ IF( Boost_FOUND ) ENDIF() +###### Find PThreads.... + FIND_PACKAGE( Threads ) IF( CMAKE_USE_PTHREADS_INIT )