Skip to content

Commit

Permalink
added header files to target for better ide support
Browse files Browse the repository at this point in the history
  • Loading branch information
drexlerd committed Jan 10, 2024
1 parent 5bf3cca commit 0292336
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ configure_boost()
# set(CMAKE_FIND_DEBUG_MODE ON)
# set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}")
message(STATUS "CMAKE_PREFIX_PATH: ${CMAKE_PREFIX_PATH}")
include_directories("${CMAKE_PREFIX_PATH}/include")
message("${CMAKE_PREFIX_PATH}/include")
find_package(Boost ${BOOST_MIN_VERSION} REQUIRED)
if(Boost_FOUND)
include_directories(${Boost_INCLUDE_DIRS})
Expand Down
1 change: 0 additions & 1 deletion exe/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,3 @@ target_link_libraries(domain loki::parsers)

add_executable(problem "problem.cpp")
target_link_libraries(problem loki::parsers)

2 changes: 2 additions & 0 deletions include/loki/common/ast/config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@
#include <boost/spirit/home/x3/support/ast/position_tagged.hpp>
#include <boost/spirit/home/x3/support/utility/error_reporting.hpp>

#include <string>


/// @brief Defines types of our parsers.
/// The configuration is relevant when reusing the parsers instantiated by the library.
Expand Down
15 changes: 14 additions & 1 deletion src/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
file(GLOB HEADER_FILES
"../include/loki/common/*.hpp"
"../include/loki/common/ast/*.hpp"
"../include/loki/common/pddl/*.hpp"
"../include/loki/common/pddl/parser/*.hpp"
"../include/loki/domain/*.hpp"
"../include/loki/domain/ast/*.hpp"
"../include/loki/domain/pddl/*.hpp"
"../include/loki/domain/pddl/parser/*.hpp"
"../include/loki/problem/*.hpp"
"../include/loki/problem/ast/*.hpp"
"../include/loki/problem/pddl/*.hpp"
"../include/loki/problem/pddl/parser/*.hpp")
file(GLOB SRC_FILES
"common/*.cpp"
"common/ast/*.cpp"
Expand All @@ -11,7 +24,7 @@ file(GLOB SRC_FILES
"problem/ast/*.cpp"
"problem/pddl/*.cpp"
"problem/pddl/parser/*.cpp")
add_library(parsers STATIC ${SRC_FILES})
add_library(parsers STATIC ${SRC_FILES} ${HEADER_FILES})
set_target_properties(parsers PROPERTIES OUTPUT_NAME loki_parsers)

# target_link_libraries(parsers PRIVATE flatbuffers)
Expand Down

0 comments on commit 0292336

Please sign in to comment.