Adding multiple executables in CMake

My suggestion is to tackle this in two phases: Build a library from the .cpp and .h files, using add_library Iterate through all your .cxx files and create an executable from each, using add_executable and foreach Build the library This could be something as simple as file( GLOB LIB_SOURCES lib/*.cpp ) file( GLOB LIB_HEADERS lib/*.h … Read more

allow semi colons in javascript eslint

eslint-config-standard uses the following rule for semicolons: “semi”: [2, “never”] The documentation for the rule lists its options: “always” (default) requires semicolons at the end of statements “never” disallows semicolons as the end of statements (except to disambiguate statements beginning with [, (, /, +, or – To overide the rule, you could modify your … Read more

Maintain src/ folder structure when building to dist/ folder with TypeScript 3

I had a similar problem when initially converting to a TypeScript project. I also set resolveJsonModule: true and the src directory was copied to the output dist directory. The underlying reason is that one of my source files required package.json at the root of the project. Once I removed that, tsc no longer added src … Read more

Android using Gradle Build flavors in the code like an if case

BuildConfig.FLAVOR gives you combined product flavor. So if you have only one flavor dimension: productFlavors { normal { } admin { } } Then you can just check it: if (BuildConfig.FLAVOR.equals(“admin”)) { … } But if you have multiple flavor dimensions: flavorDimensions “access”, “color” productFlavors { normal { dimension “access” } admin { dimension “access” … Read more

Javascript web app and Java server, build all in Maven or use Grunt for web app?

After working with about every asset pipeline tool in the Java toolkit for a while I have come to a few conclusions: Java Based Tooling There are a handful of tools out there but the most popular are JAWR and Wro4J. The biggest problem with both of these is that they are mostly Rhino based … Read more