forked from VowpalWabbit/vowpal_wabbit
-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
51 lines (39 loc) · 1.38 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
cmake_minimum_required (VERSION 3.5)
# Common configuration
set(PACKAGE_VERSION 8.5.0)
# Remove 'lib' prefix for shared libraries on Windows
if (WIN32)
set(CMAKE_SHARED_LIBRARY_PREFIX "")
endif ()
set(CMAKE_VW_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake_modules/")
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_VW_MODULE_PATH})
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
# option(VW_SSE2 "Enable SSE2 optimization" ON)
include(DiscoverPythonUnittest)
include(InstallDependencies)
# set(Boost_VERSION 1.66.0)
# DSVM only has Boost 1.58.0 installed
set(Boost_VW_VERSION 1.58.0)
if(NOT Boost_USE_STATIC_LIBS)
set(Boost_USE_STATIC_LIBS OFF)
endif()
set(Boost_USE_MULTITHREADED ON)
set(Boost_USE_STATIC_RUNTIME OFF)
set(THREADS_PREFER_PTHREAD_FLAG ON)
#set(OPENSSL_USE_STATIC_LIBS TRUE)
enable_testing()
# NOTE: The order matters! The most independent ones should go first.
add_subdirectory(vowpalwabbit-predict)
add_subdirectory(common)
add_subdirectory(allreduce)
add_subdirectory(vowpalwabbit)
add_subdirectory(cluster)
add_subdirectory(library)
add_subdirectory(decision_service)
# static/dynamic linking conflict for boost
# add_subdirectory(python)
# install(TARGETS ${PROJECT_NAME}
# RUNTIME DESTINATION bin
# LIBRARY DESTINATION lib
# ARCHIVE DESTINATION lib/static
# PUBLIC_HEADER DESTINATION include)