Prepared app directory for future subcommands.

This commit is contained in:
Patrick Lühne 2017-08-31 19:46:00 +02:00
parent 8b6c4beed8
commit 6b891fcb8e
Signed by: patrick
GPG Key ID: 05F3611E97A70ABF
3 changed files with 37 additions and 31 deletions

View File

@ -1,31 +1 @@
set(target plasp-app)
find_package(Boost 1.55.0 COMPONENTS program_options iostreams system REQUIRED)
file(GLOB core_sources "*.cpp")
file(GLOB core_headers "*.h")
set(includes
${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/lib/tokenize/include
${PROJECT_SOURCE_DIR}/lib/colorlog/include
${PROJECT_SOURCE_DIR}/lib/variant/include
${PROJECT_SOURCE_DIR}/lib/pddl/include
)
set(sources
${core_sources}
${core_headers}
)
set(libraries
stdc++fs
${Boost_LIBRARIES}
plasp
)
add_executable(${target} ${sources})
target_include_directories(${target} PRIVATE ${includes})
target_link_libraries(${target} ${libraries})
set_target_properties(${target} PROPERTIES OUTPUT_NAME plasp)
add_subdirectory(src)

36
app/src/CMakeLists.txt Normal file
View File

@ -0,0 +1,36 @@
set(target plasp-app)
find_package(Boost 1.55.0 COMPONENTS program_options iostreams system REQUIRED)
file(GLOB core_sources "*.cpp")
file(GLOB core_headers "../include/*.h")
file(GLOB commands_sources "commands/*.cpp")
file(GLOB commands_headers "../include/commands/*.h")
set(includes
${Boost_INCLUDE_DIRS}
${PROJECT_SOURCE_DIR}/include
${PROJECT_SOURCE_DIR}/lib/tokenize/include
${PROJECT_SOURCE_DIR}/lib/colorlog/include
${PROJECT_SOURCE_DIR}/lib/variant/include
${PROJECT_SOURCE_DIR}/lib/pddl/include
)
set(sources
${core_sources}
${core_headers}
${commands_sources}
${commands_headers}
)
set(libraries
stdc++fs
${Boost_LIBRARIES}
plasp
)
add_executable(${target} ${sources})
target_include_directories(${target} PRIVATE ${includes})
target_link_libraries(${target} ${libraries})
set_target_properties(${target} PROPERTIES OUTPUT_NAME plasp)