Hello,
Looking through OMake documentation it seems whenever sources from subdirectories are used - they are always compiled into static libraries first. Is this always necessary? Can I compile and link everything without building the libs? I've been trying to write OMakefiles for this but with no success.
Example dir structure:
myproject: OMakeroot, OMakefile, main.cpp
myproject/headers: file1.h
myproject/src: file1.cpp
myproject OMakeroot contents:
open build/C
.SUBDIRS: .
myproject Omakefile contents:
CXX = g++
CXXFLAGS = -Wall
INCLUDES += headers src
CXXProgram(myapp, main file1 )
OMakefiles in headers and src directories are empty, not sure if anything needs to be in them.
When I run omake myapp I get an error:
Do not know how to build "file1.o" required for "myapp"