forked from RagnarDa/dumbmutate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCMakeLists.txt
13 lines (11 loc) · 1.19 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
cmake_minimum_required(VERSION 2.8.12)
project(dumbmutate)
set(CMAKE_CXX_STANDARD 11)
if("${CMAKE_CXX_COMPILER_ID}x" STREQUAL "MSVCx")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /W4 /WX")
# This needs to be here to fix a bug in earlier CMake:
string(REGEX REPLACE "/W[3|4]" "/w" CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS}")
else()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Werror -Wall -pedantic -Wextra")
endif()
add_executable(dumbmutate Source/main.cpp Source/SourceFile.cpp Source/SourceFile.h Source/MutatorBase.cpp Source/MutatorBase.h Source/MutatorCaret.cpp Source/MutatorCaret.h Source/MutatorEqual.cpp Source/MutatorEqual.h Source/MutatorAddSubtr.cpp Source/MutatorAddSubtr.h Source/HTMLExporter.cpp Source/HTMLExporter.h Source/MutatorNEqual.cpp Source/MutatorNEqual.h Source/MutatorIncrDecr.cpp Source/MutatorIncrDecr.h Source/MutatorNumShift.cpp Source/MutatorNumShift.h Source/MutatorAndOr.cpp Source/MutatorAndOr.h Source/MutatorTrueFalse.cpp Source/MutatorTrueFalse.h Source/Utility.h Source/Utility.cpp Source/CommandRunner.cpp Source/CommandRunner.h Source/MutatorIf.cpp Source/MutatorIf.h Source/MutatorXYZ.cpp Source/MutatorXYZ.h Source/MutatorAndBitwiseAnd.cpp Source/MutatorAndBitwiseAnd.h)