summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-01 16:58:08 +1000
committerMark Farrugia <mark.farrugia@fiberdyne.com.au>2018-10-30 13:43:40 +1100
commitcb2d64d351b22cf32254a0781634a107b01488f4 (patch)
treeb5e981af3c573e14db3d34abef9cd282cf26f526
parent3424997c580659e5ef7df4c4c70d172c6f9bdcd2 (diff)
Rename top-level header, fix CMakeLists target
Signed-off-by: Mark Farrugia <mark.farrugia@fiberdyne.com.au>
-rw-r--r--CMakeLists.txt6
-rw-r--r--include/avirt/avirt.h (renamed from include/avirt.h)0
-rw-r--r--src/avirt-config.c4
3 files changed, 5 insertions, 5 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 9af162f..68e817a 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -22,11 +22,9 @@
# LIBAVIRT CONFIGURATION LIBRARY
#-------------------------------------------------------------------------------
-# Defines
-add_definitions(-D_GNU_SOURCE)
-
# Target
-add_library(avirt STATIC src/avirt_*.c)
+file(GLOB SOURCE_FILES "src/avirt-*.c")
+add_library(avirt STATIC ${SOURCE_FILES})
# Target includes
target_include_directories(avirt PUBLIC include)
diff --git a/include/avirt.h b/include/avirt/avirt.h
index 5bb8731..5bb8731 100644
--- a/include/avirt.h
+++ b/include/avirt/avirt.h
diff --git a/src/avirt-config.c b/src/avirt-config.c
index f819c65..2feeda1 100644
--- a/src/avirt-config.c
+++ b/src/avirt-config.c
@@ -19,7 +19,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-#include "avirt-config.h"
+#define _GNU_SOURCE
+
+#include <avirt/avirt.h>
#include <stdbool.h>
#include <alsa/asoundlib.h>