forked from naturalog/tauchain
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CMakeLists.txt
53 lines (41 loc) · 1.89 KB
/
CMakeLists.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
MESSAGE( STATUS "note: you dont have to use cmake, our hand-written Makefile more-or-less works" )
MESSAGE( STATUS "" )
#cmake_minimum_required(VERSION 3.0)
cmake_minimum_required(VERSION 2.8.7)
project(tauchain)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=c++11 -Wall -Wextra -ggdb -DDEBUG")
set(SOURCE_FILES
cli.cpp
cli.h
jsonld.cpp
jsonld.h
json_spirit.h
misc.cpp
misc.h
nquads.cpp
unifiers.cpp
json_object.cpp
json_object.h
prover.cpp
prover.h
rdf.cpp
rdf.h
strings.h
tau.cpp
)
set(MARPA_FILES ${SOURCE_FILES} marpa_tau.cpp)
set(MARPA_DIST ${CMAKE_SOURCE_DIR}/libmarpa-dist/dist/)
set(TCLAP "-I${CMAKE_SOURCE_DIR}/tclap/include")
find_package(Boost REQUIRED regex)
add_executable(tau ${SOURCE_FILES})
add_executable(m-tau ${MARPA_FILES})
set(COMMON_FLAGS "${TCLAP} -I${Boost_INCLUDE_DIRS} ${CMAKE_CXX_FLAGS} -ggdb -DDEBUG -O3 ")#-DPREDVARS
SET_TARGET_PROPERTIES(tau PROPERTIES COMPILE_FLAGS "${COMMON_FLAGS}" )
SET_TARGET_PROPERTIES(m-tau PROPERTIES COMPILE_FLAGS "-DPREDVARS ${COMMON_FLAGS} -I${Boost_INCLUDE_DIRS} -I${MARPA_DIST} -Dwith_marpa ")
target_link_libraries(m-tau PRIVATE "-L${MARPA_DIST}/.libs -lmarpa")
target_link_libraries(m-tau PRIVATE ${Boost_LIBRARIES} ${CMAKE_DL_LIBS})
target_link_libraries( tau PRIVATE ${Boost_LIBRARIES} ${CMAKE_DL_LIBS})
#target_include_directories(m-tau PRIVATE ${Boost_INCLUDE_DIRS} ${MARPA_DIST})
#target_include_directories( tau PRIVATE ${Boost_INCLUDE_DIRS})
#<ngladitz> http://pastebin.com/Tm5AYHEg ... I added boost and dl and redid the source file listing to make it build (I didn't have a marpa.cpp) ... I don't really know what belongs where source file wise but it produces a binary :)
#<ngladitz> cmake 3.1 adds support for selection of language standards (though I would require 3.2 for it) which would make the -std=c++11 superfluous ... which in turn would make the build more portable