Last active
April 25, 2017 12:44
-
-
Save cor3ntin/3debfff3b41d85cbcb4a027e59177362 to your computer and use it in GitHub Desktop.
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
import qbs 1.0 | |
import qbs.Probes | |
import "utils.js" as Utils | |
Project { | |
minimumQbsVersion: "1.6" | |
property string name: 'seastar' | |
CppApplication { | |
name: project.name | |
Probes.PkgConfigProbe { | |
id: pkgConfig | |
name: "seastar" | |
libDirs: [ | |
project.sourceDirectory + "/../seastar/build/release" | |
] | |
} | |
files: 'sort.cpp' | |
cpp.cxxFlags: Utils.clean(pkgConfig.cflags) | |
cpp.staticLibraries: pkgConfig.libraries | |
cpp.libraryPaths: pkgConfig.libraryPaths | |
cpp.includePaths: project.sourceDirectory + "/../seastar" | |
cpp.treatWarningsAsErrors:false | |
cpp.cxxLanguageVersion:"c++14" | |
} | |
} |
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
cmake_minimum_required (VERSION 3.1) | |
INCLUDE (FindPkgConfig) | |
set(CMAKE_PREFIX_PATH "${CMAKE_PREFIX_PATH}:${CMAKE_SOURCE_DIR}/../seastar/build/release/") | |
MESSAGE( STATUS "PKG_CONFIG_PATH: " ${PKG_CONFIG_PATH} ) | |
project (EXSORT) | |
pkg_search_module(SEASTAR REQUIRED Seastar) | |
include_directories(${SEASTAR_INCLUDE_DIRS}) | |
link_directories(${SEASTAR_INCLUDE_DIRS}) | |
target_link_libraries(sort ${SEASTAR_LIBRARIES}) | |
target_include_directories(sort PUBLIC ) | |
target_compile_options(sort PUBLIC ${SEASTAR_CFLAGS_OTHER}) | |
add_executable (sort sort.cpp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
cmake_minimum_required (VERSION 3.1)
list(APPEND CMAKE_PREFIX_PATH "${CMAKE_SOURCE_DIR}/../seastar/build/release")
project (EXSORT)
set(PKG_CONFIG_USE_CMAKE_PREFIX_PATH ON)
include(FindPkgConfig)
pkg_search_module(Seastar REQUIRED seastar IMPORTED_TARGET)
add_executable (sort sort.cpp)
target_link_libraries(sort PkgConfig::Seastar)