From a2ce39b9c79cf5e3b63fba45fd314f44704cd3df Mon Sep 17 00:00:00 2001 From: John Glover Date: Tue, 11 Sep 2012 12:21:29 +0200 Subject: [cmake] glob for simpl source and includes. --- CMakeLists.txt | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 4869e52..97767ba 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1,27 +1,16 @@ cmake_minimum_required(VERSION 2.6) project(simpl) -set(source_files src/simpl/base.cpp - src/simpl/peak_detection.cpp - src/simpl/partial_tracking.cpp - src/simpl/synthesis.cpp - src/simpl/residual.cpp -) +FILE(GLOB simpl_src src/simpl/*.cpp) FILE(GLOB sms_src src/sms/*.c) FILE(GLOB sndobj_src src/sndobj/*.cpp) FILE(GLOB loris_src src/loris/*.C) -LIST(APPEND source_files ${source_files} +LIST(APPEND source_files ${simpl_src} ${sndobj_src} ${sms_src} ${loris_src}) -set(simpl_include src/simpl/simpl.h - src/simpl/base.h - src/simpl/peak_detection.h - src/simpl/partial_tracking.h - src/simpl/synthesis.h - src/simpl/residual.h -) +FILE(GLOB simpl_include src/simpl/*.h) set(sms_include src/sms/sms.h) FILE(GLOB sndobj_include src/sndobj/*.h) FILE(GLOB loris_include src/loris/*.h) -- cgit v1.2.3