Commit 7b09dd80 authored by steinbac's avatar steinbac

tests on windows pass, added windows build instructions

parent de111a85
......@@ -41,14 +41,20 @@ IF(NOT WIN32)
check_symbol_exists(__get_cpuid "cpuid.h" GET_CPUID_INSTRINSIC_EXISTS)
ELSE()
check_symbol_exists(__cpuid "intrin.h" GET_CPUID_INSTRINSIC_EXISTS)
add_definitions(-DBOOST_ALL_NO_LIB)
set(Boost_USE_STATIC_LIBS OFF)
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
ENDIF()
#list(APPEND CMAKE_MODULE_PATH ${PROJECT_SOURCE_DIR}/cmake )
FIND_PACKAGE (Boost 1.50 COMPONENTS system filesystem unit_test_framework QUIET)
IF(DEFINED Boost_FOUND)
include_directories(${Boost_INCLUDE_DIR})
link_directories(${Boost_LIBRARY_DIR})
MESSAGE("++ Boost libraries found : ${Boost_LIBRARIES}")
ADD_SUBDIRECTORY(tests)
enable_testing()
......
......@@ -19,6 +19,16 @@ You have 2 options:
$ make install #depending on the contents of CMAKE_INSTALL_PREFIX, you may use sudo
```
- on Windows platforms (assuming that cmake and boost\lib are in your path)
```
> cd repo
> mkdir build
> cd build
> cmake.exe -G "Visual Studio 14 2015 Win64" -DBOOST_ROOT=C:\path\to\boost\1_59_0 ..
> cmake.exe --build . --target ALL_BUILD --config Release
> ctest.exe -C Release
```
## Compass API
Here is a minimal code example that tries to detect SSE4 at runtime:
......
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