cmake

安装并配置单实例mysql数据库

怎甘沉沦 提交于 2020-04-18 17:50:23
一、下载介质 http://mirrors.sohu.com/mysql/ http://mirrors.163.com/mysql/Downloads/MySQL-5.6/mysql-5.6.40.tar.gz http://dev.mysql.com/downloads/mysql/ http://ftp.ntu.edu.tw/MySQL/Downloads/ 二、安装mysql需要的依赖包和编译软件 [root@monitor01 ~]# cat /etc/redhat-release CentOS Linux release 7.6.1810 (Core) [root@monitor01 ~]# uname -r 3.10.0-957.el7.x86_64 [root@monitor01 ~]# uname -m x86_64 安装依赖包 [root@monitor01 yum.repos.d]# yum install ncurses-devel libaio-devel cmake gcc gcc-c++ glibc openssl-devel bison-devel autoconf -y [root@monitor01 yum.repos.d]# rpm -qa curses-devel libaio-devel 安装编译mysql需要的软件 [root

Open Main Page of Doxygen Documentation with CMake

霸气de小男生 提交于 2020-04-18 03:49:36
问题 I have a project where I use Google Tests. I have the following CMake file in the root directory: set(CMAKE_C_COMPILER gcc) cmake_minimum_required(VERSION 3.10.2 FATAL_ERROR) project(PROJECT) set(CMAKE_INCLUDE_CURRENT_DIR ON) set(CMAKE_AUTOMOC ON) set(CMAKE_AUTOUIC ON) set(SOURCES src/a.cpp src/b.cpp) set(TESTSOURCES test/tests.cpp src/a.cpp src/br.cpp) set(HEADERS src/a.h src/b.h src/c.h src/c.h) set(CMAKE_CXX_FLAGS "${MAKE_CXX_FLAGS} -std=c++0x") find_package(Qt5 COMPONENTS Core Widgets

CMake: Using add_subproject with a library using Include ends up in wrong relative path

ε祈祈猫儿з 提交于 2020-04-17 21:51:34
问题 Global CMakeLists.txt This CMakeLists.txt compiles a few C++ files (Qt5/...) with MOC and is not 'special' in any regards. The code in question is this: add_subdirectory(third-party/libwebrtc) include_directories(third-party/libwebrtc) target_link_libraries(${PROJECT_NAME} libwebrtc) libwebrtc CMakeLists.txt cmake_minimum_required(VERSION 3.3) project(libwebrtc) # Allow the use of IN_LIST operand cmake_policy(SET CMP0057 NEW) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}

CMake: Using add_subproject with a library using Include ends up in wrong relative path

和自甴很熟 提交于 2020-04-17 21:51:23
问题 Global CMakeLists.txt This CMakeLists.txt compiles a few C++ files (Qt5/...) with MOC and is not 'special' in any regards. The code in question is this: add_subdirectory(third-party/libwebrtc) include_directories(third-party/libwebrtc) target_link_libraries(${PROJECT_NAME} libwebrtc) libwebrtc CMakeLists.txt cmake_minimum_required(VERSION 3.3) project(libwebrtc) # Allow the use of IN_LIST operand cmake_policy(SET CMP0057 NEW) set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} ${CMAKE_SOURCE_DIR}

cmake undefined reference

别来无恙 提交于 2020-04-16 06:46:19
问题 I am using cmake to build my project, but I am getting these errors. Scanning dependencies of target las2vtk [ 50%] Building CXX object CMakeFiles/las2vtk.dir/LAS2VTK.cxx.o [100%] Building CXX object CMakeFiles/las2vtk.dir/PointSet.cxx.o Linking CXX executable las2vtk CMakeFiles/las2vtk.dir/LAS2VTK.cxx.o: In function `main': LAS2VTK.cxx:(.text+0xf1): undefined reference to `PointSet<PointND<3, float> >::read_LAS(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int)'

cmake undefined reference

有些话、适合烂在心里 提交于 2020-04-16 06:46:14
问题 I am using cmake to build my project, but I am getting these errors. Scanning dependencies of target las2vtk [ 50%] Building CXX object CMakeFiles/las2vtk.dir/LAS2VTK.cxx.o [100%] Building CXX object CMakeFiles/las2vtk.dir/PointSet.cxx.o Linking CXX executable las2vtk CMakeFiles/las2vtk.dir/LAS2VTK.cxx.o: In function `main': LAS2VTK.cxx:(.text+0xf1): undefined reference to `PointSet<PointND<3, float> >::read_LAS(std::basic_string<char, std::char_traits<char>, std::allocator<char> >&, int)'

Why does link_libraries(stdc++fs) work but not -lstdc++fs? [duplicate]

给你一囗甜甜゛ 提交于 2020-04-16 06:07:28
问题 This question already has an answer here : Flag '-l' in CMAKE_CXX_FLAGS doesn't work (1 answer) Closed 8 days ago . I was trying to compile a C++17 program on Ubuntu using CMake/g++ 8.1 which contained #include <filesystem> When I used this set(CMAKE_CXX_FLAGS "-lstdc++fs") I got a weird linker error undefined reference to `std::filesystem::__cxx11::recursive_directory_iterator::~recursive_directory_iterator()' This error also appeared when I tried calling g++ manually with the -lstdc++fs

Do not expand CMake list variable

筅森魡賤 提交于 2020-04-16 06:04:09
问题 I have a CMake script that runs some tests via add_test() , running under Windows (Server 2008, don't ask) in CMake 3.15. When these tests are called, the PYTHONPATH environment variable in the environment they run in seems to get reset to the environment default, and doesn't contain some paths that it needs to. I therefore need to set PYTHONPATH when the tests are run to the value of the $ENV{PYTHONPATH} variable when CMake runs. This has a number of semicolon-separated paths, so CMake

What is the correct way of providing header-filter for clang-tidy in Cmake?

纵然是瞬间 提交于 2020-04-16 05:48:11
问题 I have projects that sets Clang-tidy configuration as following set(CMAKE_CXX_CLANG_TIDY "clang-tidy;-checks=google-*,cppcoreguidelines-*;") However, I have noticed that it was checking all the files that are not even in the current repo like /opt/ros/melodic/include/ros/console.h and all the .h/.hpp files of submodules... I tried to add a regex to filter the target .h files but couldn't get it working... I have given absolute path for a single .hpp file but it was still evaluating /opt/ros

How can I build RDKits C# Wrappers — Visual Studio 2019 x64

被刻印的时光 ゝ 提交于 2020-04-16 02:47:21
问题 I have followed the steps described here: https://github.com/bp-kelley/rdkit-csharp to try and create RDKits C# Wrappers. git clone https://github.com/bp-kelley/rdkit-csharp.git git clone https://github.com/rdkit/rdkit.git cd rdkit-csharp build.bat While trying running the build.bat I've run into an error to do with creating named generators (among many others) and I'm not sure how to sort it out. The build.bat references Visual Studio 14 and Visual Studio 14 Win64 I have tried to update this