summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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>