mirror of
https://github.com/gelldur/EventBus.git
synced 2024-12-26 18:51:02 +08:00
Update dev project cmake
This commit is contained in:
parent
0d2fa6ef85
commit
bc466a3d6b
@ -5,18 +5,27 @@ cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
|
||||
|
||||
project(EventBusDev)
|
||||
|
||||
option(ENABLE_TEST "Enable test" ON)
|
||||
option(ENABLE_PERFORMANCE "Enable performance subproject" OFF)
|
||||
|
||||
set(CMAKE_CXX_STANDARD 14)
|
||||
|
||||
add_subdirectory(lib/)
|
||||
|
||||
enable_testing()
|
||||
add_subdirectory(test/)
|
||||
if(ENABLE_TEST)
|
||||
enable_testing()
|
||||
add_subdirectory(test/)
|
||||
endif()
|
||||
|
||||
add_subdirectory(sample/)
|
||||
add_subdirectory(performance/)
|
||||
|
||||
if(ENABLE_PERFORMANCE)
|
||||
add_subdirectory(performance/)
|
||||
endif()
|
||||
|
||||
target_compile_options(EventBus PUBLIC
|
||||
-Wall -pedantic
|
||||
-Wnon-virtual-dtor
|
||||
-Werror
|
||||
-Wno-error=deprecated-declarations
|
||||
)
|
||||
-Wall -pedantic
|
||||
-Wnon-virtual-dtor
|
||||
-Werror
|
||||
-Wno-error=deprecated-declarations
|
||||
)
|
||||
|
Loading…
x
Reference in New Issue
Block a user