summaryrefslogtreecommitdiff
path: root/CMakeLists.txt
diff options
context:
space:
mode:
authorouwou <26526779+ouwou@users.noreply.github.com>2021-07-25 23:00:16 -0400
committerouwou <26526779+ouwou@users.noreply.github.com>2021-07-25 23:46:44 -0400
commitea9dd29721da8c8bef126462c2ee4fd1e53d7edc (patch)
tree7583336e2b756fd13955f6aacd9446b43d75e179 /CMakeLists.txt
parent96b8b19dd3b9187c66c5341b6ac8d41f6f8d6b32 (diff)
parent8321cd29d63d9d54891510b34a25f243cf278882 (diff)
downloadabaddon-portaudio-ea9dd29721da8c8bef126462c2ee4fd1e53d7edc.tar.gz
abaddon-portaudio-ea9dd29721da8c8bef126462c2ee4fd1e53d7edc.zip
Merge branch 'resources' (closes #29)
Diffstat (limited to 'CMakeLists.txt')
-rw-r--r--CMakeLists.txt5
1 files changed, 5 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 5dd1007..82d405f 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -2,6 +2,8 @@ cmake_minimum_required(VERSION 3.16)
project(abaddon)
+set(ABADDON_RESOURCE_DIR "/usr/share/abaddon" CACHE PATH "Fallback directory for resources on Linux")
+
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} "${CMAKE_SOURCE_DIR}/cmake/")
@@ -35,6 +37,8 @@ if(WIN32)
link_libraries(${Fontconfig_LIBRARIES})
endif()
+configure_file(${PROJECT_SOURCE_DIR}/config.h.in ${PROJECT_BINARY_DIR}/config.h)
+
file(GLOB ABADDON_SOURCES
"*.h"
"*.hpp"
@@ -54,6 +58,7 @@ file(GLOB ABADDON_SOURCES
)
add_executable(abaddon ${ABADDON_SOURCES})
+target_include_directories(abaddon PUBLIC ${PROJECT_BINARY_DIR})
target_include_directories(abaddon PUBLIC ${GTKMM_INCLUDE_DIRS})
target_include_directories(abaddon PUBLIC ${ZLIB_INCLUDE_DIRS})
target_include_directories(abaddon PUBLIC ${SQLite3_INCLUDE_DIRS})