User forums > General (but related to Code::Blocks)
Premake-Generated-Project: Codeblocks creates binaries in the wrong directory!!!
(1/1)
babaliaris:
Hello! I created a project for codeblocks using Premake but when I build the project, codeblocks instead of generating the binaries inside bin/Debug(Release) , it creates them into the directory where premake4.lua exists.
If you don't know how premake works, can you tell me if codeblocks has a project setting which tells it where to build binaries for Debug or Release configurations? This might help me figure it out.
This is how the project tree looks like:
Premake Root/
src/
premake4.lua
codeblocks/
TestSolution.workspace
Test/
Test.cbp
Notice that the codeblocks directory and everything inside it are generated by premake.
This is my premake script:
--- Code: ---solution "TestSolution"
configurations {"Debug", "Release"}
location "codeblocks"
project "Test"
kind "ConsoleApp"
language "C++"
files {"**.cpp", "**.h"}
links {"GL", "glfw", "GLEW"}
includedirs {"/usr/local/include", "/usr/include", "src/headers"}
libdirs {"/usr/lib", "/usr/local/lib64"}
location "codeblocks/Test"
file = io.open("codeblocks/run.sh", "w");
file:write("export LIBGL_ALWAYS_SOFTWARE=1\n./bin/Debu/Test")
file:close()
--- End code ---
As always, thank you :)
babaliaris:
I found the solution targetdir
Navigation
[0] Message Index
Go to full version