Skip to content
Snippets Groups Projects
Unverified Commit cfd6955b authored by Tomáš Pecka's avatar Tomáš Pecka
Browse files

aql: configure header for standard library files location

Let's start working on a standard library [1]. The idea is that we
bundle some aql files with predefined functions (and procedures) and we
load them when aql prompt starts.

So let's prepare a configuration file with a location for the scripts.
The location is currently only in local dev tree. We will later change
that to some /usr/share or /usr/lib location.

[1] #221
parent f9eef7f9
No related branches found
No related tags found
No related merge requests found
......@@ -20,7 +20,8 @@ find_package(LibXml2 REQUIRED)
find_package(Readline REQUIRED)
 
alt_executable(aql2
DEPENDS alib2elgo alib2graph_algo alib2algo alib2aux alib2raw_cli_integration alib2raw alib2str_cli_integration alib2str alib2graph_data alib2data alib2cli alib2xml alib2common alib2abstraction alib2measure alib2std LibXml2::LibXml2 ${READLINE_LIBRARY}
#DEPENDS alib2elgo alib2graph_algo alib2algo alib2aux alib2raw_cli_integration alib2raw alib2str_cli_integration alib2str alib2graph_data alib2data alib2cli alib2xml alib2common alib2abstraction alib2measure alib2std LibXml2::LibXml2 ${READLINE_LIBRARY}
DEPENDS alib2cli ${READLINE_LIBRARY}
INCLUDES ${READLINE_INCLUDE_DIR} ${TCLAP_INCLUDE_DIR}
)
 
......@@ -29,3 +30,11 @@ if(FETCH_NEW_TCLAP)
target_include_directories(aql2 SYSTEM PUBLIC ${CMAKE_BINARY_DIR}/tclap-src/include/) # There are many warnings inside tclap, use -isystem instead of -I
endif()
# hack end
# stdlib
set(STDLIB_DIRECTORY "${CMAKE_CURRENT_SOURCE_DIR}/src/stdlib")
configure_file(
${CMAKE_CURRENT_SOURCE_DIR}/src/aql.h.in
${CMAKE_CURRENT_BINARY_DIR}/aql.h
)
set(CMAKE_INCLUDE_CURRENT_DIR ON)
#pragma once
#define STDLIB_DIRECTORY "@STDLIB_DIRECTORY@"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment