build-system

Sublime Text C++ Build System

不想你离开。 提交于 2021-02-10 14:57:37
问题 I use the following compiler settings to compile my C++ code: g++ -Wall -Wextra -O2 -fwrapv -Wfloat-equal -Wconversion -std=c++17 A.cpp But I am not sure how to setup the build system for the purpose, nor I want to try myself! I doubt that I may mess up the configuration (because I did once). So I need help to configure my build system for the above compiler settings. How can I do that? 回答1: This build system works in my machine, basically its the default C++ build system with the extra

Modern CMake transitive Dependency not found

时间秒杀一切 提交于 2021-02-08 06:46:37
问题 I am currently working on implementing a ROS library into our company software stack. Because the library is based on ROS and thus uses catkin I am rewriting the library to use cmake exclusively and try to apply the modern CMake approach. The library is structured as follows: . |-- CMakeLists.txt |-- LICENSE |-- README.md |-- grid_map_core | |-- CHANGELOG.rst | |-- CMakeLists.txt | |-- cmake | | `-- grid_map_core-extras.cmake | |-- grid_map_coreConfig.cmake | |-- include | | `-- grid_map_core

CMake add_subdirectory()

感情迁移 提交于 2020-01-15 01:40:14
问题 Introduction: I am trying to use CMake to obtain cross platform compilation scripts (for VS 9.0 on a Windows32 and Makefiles for Unix). I am experiencing something i can't understand about add_subdirectory(). Let me show you my code : Context: My architecture for a module named "module1" is something like this : CMakeLists.txt include/ file1.h file2.h *.h src/ file1.cpp file2.cpp *.cpp test/ CMakeLists.txt src/ testfile1.cpp testfile2.cpp The architecture of my whole application is composed

How to create Sublime Text 3 build system which reads shebang

允我心安 提交于 2019-12-21 20:39:09
问题 How can I create a build system in Sublime Text 3 where "cmd" is replaced with a shebang if it exists? More specifically, is there a way to alter the Python build system to use the version of Python specified in the shebang, and use a default if no shebang is present? 回答1: Sublime build systems have an option named target which specifies a WindowCommand that is to be invoked to perform the build. By default this is the internal exec command. You can create your own command that would examine

Configure Sublime Text build system for Scala?

限于喜欢 提交于 2019-12-21 16:54:52
问题 I'm trying to configure a build system for Scala with SublimeText, but I am having some difficulty. I have tried both of the following: { "shell_cmd": "scala", "working_dir": "${project_path:${folder}}", "selector": "source.scala" } { "cmd": ["/path/to/bin/scala", "$file_name"], "working_dir": "${project_path:${folder}}", "selector": "source.scala", "shell": true } Both of these attempts produce the same failed output - it seems to start up the interactive Scala shell rather than running my

Macro definitions for headers, where to put them?

不打扰是莪最后的温柔 提交于 2019-12-21 07:24:22
问题 When defining macros that headers rely on, such as _FILE_OFFSET_BITS , FUSE_USE_VERSION , _GNU_SOURCE among others, where is the best place to put them? Some possibilities I've considered include At the top of the any source files that rely on definitions exposed by headers included in that file Immediately before the include for the relevant header(s) Define at the CPPFLAGS level via the compiler? (such as -D_FILE_OFFSET_BITS=64 ) for the: Entire source repo The whole project Just the