Premake refactor
This commit is contained in:
parent
37326a5526
commit
e4c2e711db
13 changed files with 55 additions and 25 deletions
BIN
clab/hello
BIN
clab/hello
Binary file not shown.
|
@ -1,5 +0,0 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int main(int argc,char **argv){
|
||||
printf("Hello world\n");
|
||||
}
|
|
@ -1,7 +0,0 @@
|
|||
#include <stdio.h>
|
||||
|
||||
int hijackMethod(){
|
||||
printf("This should never be called");
|
||||
printf("Neither this...");
|
||||
return 0;
|
||||
}
|
42
premake5.lua
Normal file
42
premake5.lua
Normal file
|
@ -0,0 +1,42 @@
|
|||
workspace "CppLib"
|
||||
configurations {"Debug", "Release" }
|
||||
system "linux"
|
||||
|
||||
project "HelloWorld"
|
||||
kind "ConsoleApp"
|
||||
language "c++"
|
||||
targetdir "bin/%{cfg.buildcfg}"
|
||||
|
||||
files {"**.hpp","**.cpp"}
|
||||
|
||||
filter "configurations:Debug"
|
||||
defines { "DEBUG" }
|
||||
symbols "On"
|
||||
|
||||
filter "configurations:Release"
|
||||
defines { "NDEBUG" }
|
||||
optimize "On"
|
||||
|
||||
filter { "system:linux" }
|
||||
links {
|
||||
"wx_gtk3u_xrc-3.0",
|
||||
"wx_gtk3u_html-3.0",
|
||||
"wx_gtk3u_adv-3.0",
|
||||
"wx_gtk3u_core-3.0" ,
|
||||
"wx_baseu_xml-3.0",
|
||||
"wx_baseu_net-3.0",
|
||||
"wx_baseu-3.0",
|
||||
"glfw3"
|
||||
}
|
||||
includedirs {
|
||||
"/usr/lib/x86_64-linux-gnu/wx/include/gtk3-unicode-3.0" ,
|
||||
"/usr/include/wx-3.0"
|
||||
}
|
||||
defines {
|
||||
"_FILE_OFFSET_BITS=64",
|
||||
"WXUSINGDLL",
|
||||
"__WXGTK__"
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../include/bmath/complex.hpp"
|
||||
#include "complex.hpp"
|
||||
|
||||
/**
|
||||
* Constructor implementation
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include <iostream>
|
||||
#include "../../../include/bmath/complex.hpp"
|
||||
#include "../complex.hpp"
|
||||
|
||||
using BMath::Complex;
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../../include/bmath/math.hpp"
|
||||
#include "../math.hpp"
|
||||
#include <iostream>
|
||||
|
||||
using namespace BMath;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../include/bmath/math.hpp"
|
||||
#include "math.hpp"
|
||||
|
||||
//http://graphics.stanford.edu/~seander/bithacks.html
|
||||
//https://hbfs.wordpress.com/2008/08/05/branchless-equivalents-of-simple-functions/
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../include/cpu/avx2.hpp"
|
||||
#include "avx2.hpp"
|
||||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
#include <iostream>
|
||||
#include "../../../include/cpu/utils.hpp"
|
||||
#include "../../../include/cpu/sse.hpp"
|
||||
#include "../../../include/cpu/naive.hpp"
|
||||
#include "../utils.hpp"
|
||||
#include "../sse.hpp"
|
||||
#include "../naive.hpp"
|
||||
#include <sys/time.h>
|
||||
|
||||
using namespace cpu;
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "../../include/cpu/naive.hpp"
|
||||
#include "../../include/cpu/types.hpp"
|
||||
#include "naive.hpp"
|
||||
#include "types.hpp"
|
||||
#include <iostream>
|
||||
|
||||
void cpu::Naive::sum_128_long(UInt *a,UInt *b){
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
#include "../../include/cpu/sse.hpp"
|
||||
#include "sse.hpp"
|
||||
#include <iostream>
|
||||
|
||||
//X86 Assembly to add two 128 bit numbers in the form of packed integers 32bit
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
#include "../../../include/misc/memory/model.h"
|
||||
#include "../../../include/misc/util/debug.h"
|
||||
#include "model.h"
|
||||
#include "../util/debug.h"
|
||||
#include <memory>
|
||||
#include <atomic>
|
||||
|
||||
|
|
Loading…
Reference in a new issue