-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathCMakeLists.txt
51 lines (39 loc) · 1.71 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
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)
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)
find_package(Boost REQUIRED regex)
add_executable(tau ${SOURCE_FILES})
add_executable(m-tau ${MARPA_FILES})
add_executable(p-tau ${SOURCE_FILES})
SET_TARGET_PROPERTIES(m-tau PROPERTIES COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -DDEBUG -Dwith_marpa -ggdb")
target_link_libraries(m-tau PRIVATE "-L${CMAKE_SOURCE_DIR}/libmarpa/dist/.libs -lmarpa")
target_link_libraries(p-tau PRIVATE ${Boost_LIBRARIES} ${CMAKE_DL_LIBS})
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})
target_include_directories(p-tau PRIVATE ${Boost_INCLUDE_DIRS})
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