Created
March 3, 2020 12:43
-
-
Save askuri/f802e974fed4a1c9b8547b8063a000d8 to your computer and use it in GitHub Desktop.
PrologBFS boost hässliche Variante
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# build script, hässliche variante. | |
# lade die boost libraries runter: https://www.boost.org/users/history/version_1_72_0.html | |
# entpacke den ordner 'boost' aus dem archiv in einen beliebigen leeren Ordner, | |
# sodass der Pfad dahin so aussieht /path/to/boost. Der ordner mit den boost | |
# libraries muss weiter boost heißen. | |
# Passe die Variable Boost_INCLUDE_DIR (siehe unten) entsprechend des obigen pfad an | |
cmake_minimum_required(VERSION 3.10) | |
project(prolog_bfs) | |
set(CMAKE_CXX_STANDARD 17) | |
SET(Boost_INCLUDE_DIR "/home/martin/Desktop") # put the 'boost' folder with libraries on your desktop | |
FIND_PACKAGE(Boost REQUIRED ) | |
INCLUDE_DIRECTORIES( ${Boost_INCLUDE_DIR} ) | |
file(GLOB_RECURSE prolog_bfs_src | |
"src/util/*.h" | |
"src/util/*.cpp" | |
"src/wam/*.h" | |
"src/wam/*.cpp" | |
) | |
add_executable(prolog_bfs wasm.cpp ${prolog_bfs_src}) | |
TARGET_LINK_LIBRARIES( prolog_bfs LINK_PUBLIC ${Boost_LIBRARIES} ) | |
# linker flags | |
# enable embind with --bind flag | |
set_target_properties(prolog_bfs PROPERTIES LINK_FLAGS "--bind --emrun -s TOTAL_MEMORY=500MB") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment