|
cmake_minimum_required(VERSION 3.25)
|
|
project(isspam)
|
|
|
|
set(CMAKE_CXX_STANDARD 26)
|
|
if (MSVC)
|
|
add_compile_options(/W4)
|
|
add_compile_options(/WX)
|
|
add_compile_options(/external:anglebrackets)
|
|
add_compile_options(/external:W0)
|
|
add_compile_options(/wd4100)
|
|
add_compile_options(/wd5050)
|
|
add_definitions(-DWIN32_LEAN_AND_MEAN -DVC_EXTRALEAN)
|
|
add_compile_definitions(WIN32_LEAN_AND_MEAN NOMINMAX)
|
|
else ()
|
|
add_compile_options(-Wall)
|
|
add_compile_options(-Wextra)
|
|
add_compile_options(-Wpedantic)
|
|
# add_compile_options(-Werror)
|
|
endif ()
|
|
|
|
add_executable(${PROJECT_NAME} src/main.cpp)
|
|
add_executable(${PROJECT_NAME}3 src/main3.cpp)
|
|
|
|
if (LINUX)
|
|
target_link_libraries(${PROJECT_NAME} tbb)
|
|
target_link_libraries(${PROJECT_NAME}3 tbb)
|
|
endif () |