2016-11-21 17:51:14 +01:00
|
|
|
set(target anthem)
|
|
|
|
|
|
|
|
file(GLOB core_sources "anthem/*.cpp")
|
|
|
|
file(GLOB core_headers "../include/anthem/*.h")
|
|
|
|
|
2016-11-24 00:21:01 +01:00
|
|
|
file(GLOB output_sources "anthem/output/*.cpp")
|
|
|
|
file(GLOB output_headers "../include/anthem/output/*.h")
|
|
|
|
|
2016-11-21 17:51:14 +01:00
|
|
|
set(sources
|
|
|
|
${core_sources}
|
|
|
|
${core_headers}
|
2016-11-24 00:21:01 +01:00
|
|
|
|
|
|
|
${output_sources}
|
|
|
|
${output_headers}
|
2016-11-21 17:51:14 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(includes
|
2016-11-24 22:46:44 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/include
|
2017-03-08 00:06:22 +01:00
|
|
|
${PROJECT_SOURCE_DIR}/lib/variant/include
|
2016-11-21 17:51:14 +01:00
|
|
|
)
|
|
|
|
|
|
|
|
set(libraries
|
|
|
|
libclasp
|
|
|
|
libclingo
|
|
|
|
libgringo
|
|
|
|
)
|
|
|
|
|
2016-11-24 22:46:44 +01:00
|
|
|
if(ANTHEM_BUILD_STATIC)
|
|
|
|
add_library(${target} STATIC ${sources})
|
|
|
|
else()
|
|
|
|
add_library(${target} ${sources})
|
|
|
|
endif()
|
|
|
|
|
2016-11-21 17:51:14 +01:00
|
|
|
target_include_directories(${target} PUBLIC ${includes})
|
|
|
|
target_link_libraries(${target} ${libraries})
|