Skip to content

Commit

Permalink
Merge pull request #6 from mike919192/cmakeDefine
Browse files Browse the repository at this point in the history
Move define to cmakelists.  Add file glob
  • Loading branch information
mike919192 authored Dec 2, 2023
2 parents dd1e164 + 299b980 commit 6f05cd9
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
cmake_minimum_required(VERSION 3.15)
project(testFFT)

file(GLOB test CONFIGURE_DEPENDS "test/*.cpp")

find_package(Catch2 REQUIRED)

set(CMAKE_EXPORT_COMPILE_COMMANDS ON)
if ( CMAKE_COMPILER_IS_GNUCC )
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Wall -Wextra")
endif()

add_executable(${PROJECT_NAME} test/testFFT.cpp test/testIIR.cpp)
add_executable(${PROJECT_NAME} ${test})
add_compile_definitions(CATCH_CONFIG_MAIN)
include_directories(include)
target_link_libraries(${PROJECT_NAME} Catch2::Catch2WithMain)
1 change: 0 additions & 1 deletion test/testFFT.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@

#define CATCH_CONFIG_MAIN
#include "catch2/catch_all.hpp"
#include "sdsp/fft.h"

Expand Down

0 comments on commit 6f05cd9

Please sign in to comment.