2019-02-21 20:57:38 +01:00
|
|
|
cmake_minimum_required(VERSION 3.1)
|
2019-02-22 00:36:10 +01:00
|
|
|
project(bh_random CXX)
|
2019-02-22 00:34:56 +01:00
|
|
|
|
|
|
|
add_definitions(-std=c++11)
|
2019-02-21 20:57:38 +01:00
|
|
|
|
|
|
|
if (NOT CMAKE_BUILD_TYPE)
|
|
|
|
set(CMAKE_BUILD_TYPE Release)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
add_library(bh_random STATIC
|
2021-10-05 09:15:29 +02:00
|
|
|
src/bh_random.cpp
|
2019-02-21 20:57:38 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
IF ( MSVC )
|
|
|
|
MESSAGE ( STATUS "Setting MSVC MT switches")
|
2019-03-08 14:39:23 +01:00
|
|
|
string (REPLACE
|
|
|
|
"/MDd"
|
|
|
|
"/MTd"
|
|
|
|
CMAKE_C_FLAGS_DEBUG
|
|
|
|
${CMAKE_C_FLAGS_DEBUG}
|
2019-02-21 20:57:38 +01:00
|
|
|
)
|
2019-03-08 14:39:23 +01:00
|
|
|
string (REPLACE
|
|
|
|
"/MDd"
|
|
|
|
"/MTd"
|
|
|
|
CMAKE_C_FLAGS_RELEASE
|
|
|
|
${CMAKE_C_FLAGS_RELEASE}
|
2019-02-21 20:57:38 +01:00
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|