-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
26 lines (22 loc) · 1006 Bytes
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
cmake_minimum_required(VERSION 3.1.3)
project(VFV)
#Common compiler flags
set(COMMON_COMPILE_OPTIONS -Wall -Wextra -pedantic -std=c++0x -g)
# set(COMMON_COMPILE_OPTIONS -Wall -Wextra -pedantic -std=c++0x -O3)
set(
SRCFILES
"src/Plotter/FrameBuffer.cpp"
"src/Plotter/lodepng.cpp"
"src/Plotter/Renderer.cpp"
"src/Plotter/VectorFieldPlot.cpp"
"src/Interface/AppContext.cpp"
"src/Interface/Main.cpp"
"src/Interface/ScalarFunction.cpp"
"src/Interface/Tokenizer.cpp"
)
# add_executable(visualizer ${SRCFILES})
# set_target_properties(visualizer PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
# target_compile_options(visualizer PRIVATE ${COMMON_COMPILE_OPTIONS})
add_executable(test-expression "test/TestExpression.cpp" "src/Interface/Tokenizer.cpp" "src/Interface/Expression.cpp")
set_target_properties(test-expression PROPERTIES RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
target_compile_options(test-expression PRIVATE ${COMMON_COMPILE_OPTIONS})