-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
34 lines (23 loc) · 1.39 KB
/
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
27
28
29
30
31
32
33
34
cmake_minimum_required(VERSION 3.8)
project(PCSC2017_Group5)
set(CMAKE_CXX_STANDARD 17)
set(SOURCE_FILES main.cpp readFile.h readFile.cpp FFTreal.cpp FFTreal.h gnuplot_i.hpp gnuplot_i.cpp Lagrange.cpp Lagrange.h LeastSquare.cpp LeastSquare.h PieceWiseContinuePolynomial.cpp PieceWiseContinuePolynomial.h Graph.cpp Graph.h Test.cpp Test.h)
find_package(Doxygen)
option(BUILD_DOCUMENTATION "Create and install the HTML based API
documentation (requires Doxygen)" ${DOXYGEN_FOUND})
if(BUILD_DOCUMENTATION)
if(NOT DOXYGEN_FOUND)
message(FATAL_ERROR "Doxygen is needed to build the documentation.")
endif()
set(doxyfile_in ${CMAKE_CURRENT_SOURCE_DIR}/doc/Doxyfile)
set(doxyfile ${CMAKE_CURRENT_BINARY_DIR}/doxyfile)
configure_file(${doxyfile_in} ${doxyfile} @ONLY)
message("Doxygen build started.")
add_custom_target(doc ALL
COMMAND ${DOXYGEN_EXECUTABLE} ${doxyfile_in}
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/doc
COMMENT "Generating API documentation with Doxygen"
VERBATIM)
#install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/html DESTINATION doc)
endif()
add_executable(PCSC2017_Group5 ${SOURCE_FILES} readFile.h readFile.cpp FFTreal.cpp FFTreal.h gnuplot_i.hpp gnuplot_i.cpp Lagrange.cpp Lagrange.h LeastSquare.cpp LeastSquare.h PieceWiseContinuePolynomial.cpp PieceWiseContinuePolynomial.h Graph.cpp Graph.h Test.cpp Test.h)