-
Notifications
You must be signed in to change notification settings - Fork 10
/
CMakeLists.txt
47 lines (33 loc) · 1.48 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
cmake_minimum_required(VERSION 3.15)
mark_as_advanced(CMAKE_BACKWARDS_COMPATIBILITY)
set(CMAKE_ALLOW_LOOSE_LOOP_CONSTRUCTS TRUE)
project(vws)
include(config/platform.cmake)
#-------------------------------------------------------------------------------
# Project / Files
#-------------------------------------------------------------------------------
set(PROJECT_NAME vws)
# Version
set(VERSION_MAJ 2)
set(VERSION_MIN 0)
set(VERSION_CL 0)
set(VERSION_PL 0)
set(VERSION_BN 0)
set(VERSION ${VERSION_MAJ}.${VERSION_MIN}.${VERSION_PL})
string(TIMESTAMP RELEASE_DATE)
message(STATUS "RELEASE_DATE: ${RELEASE_DATE}")
message(STATUS "VERSION: ${VERSION}")
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/common.h.in
${CMAKE_CURRENT_BINARY_DIR}/src/common.h )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/doc/xml/doc.mod.in
${CMAKE_CURRENT_BINARY_DIR}/doc/xml/doc.mod )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/ruby/config/version.rb.in
${CMAKE_CURRENT_BINARY_DIR}/src/ruby/lib/vrtql/ws/version.rb )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/ruby/config/vrtql-ws.gemspec.in
${CMAKE_CURRENT_SOURCE_DIR}/src/ruby/config/vrtql-ws.gemspec )
configure_file( ${CMAKE_CURRENT_SOURCE_DIR}/src/ruby/scripts/common.sh.in
${CMAKE_CURRENT_SOURCE_DIR}/src/ruby/scripts/common.sh )
set(CMAKE_BUILD_TYPE "Debug")
find_package(Threads REQUIRED)
find_package(OpenSSL REQUIRED)
add_subdirectory(src)