add_library(lib_trial OBJECT ${SOURCE_FILES}) target_include_directories(lib_trial PRIVATE ${CMAKE_SOURCE_DIR}/include)
Migrating code from omake to cmake. Here my target creates .o and .d files. Try to achieve came in cmake But By above code lines i was able to create .cpp.obj and .cpp.obj.d files, my requirement is to create .o and .d files
Those are the files in question…why do you need the extensions to be something specific (especially the .d files)?
.d
Im working on migration from omake to cmake. In omake, object files are created. Im trying to achieve same in cmake
.obj is the typical Windows convention for object files. Also, CMake keeps the source extension so that foo.c and foo.cxx don’t collide.
.obj
foo.c
foo.cxx