release
This commit is contained in:
parent
731927ac93
commit
1be373198a
@ -2,6 +2,21 @@ cmake_minimum_required(VERSION 3.9)
|
||||
project(SecMedia VERSION 0.0.1 DESCRIPTION "Security Media Package")
|
||||
set(CMAKE_CXX_STANDARD 11)
|
||||
|
||||
if(${CMAKE_BUILD_TYPE} MATCHES "Release")
|
||||
message(STATUS "Release版本")
|
||||
set(BuildType "Release")
|
||||
add_definitions(-DNDEBUG)
|
||||
add_definitions(-DDEBUG_LOG)
|
||||
elseif(${CMAKE_BUILD_TYPE} MATCHES "MinSizeRel")
|
||||
message(STATUS "MinSizeRel版本")
|
||||
set(BuildType "MinSizeRel")
|
||||
else()
|
||||
set(BuildType "Debug")
|
||||
message(STATUS "Debug版本")
|
||||
add_definitions(-DDEBUG_LOG)
|
||||
add_definitions(-DNDEBUG)
|
||||
endif()
|
||||
|
||||
SET(LIBRARY_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/release/lib)
|
||||
SET(EXECUTABLE_OUTPUT_PATH ${CMAKE_CURRENT_SOURCE_DIR}/release/out)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user