Flatten the build directory
I want to copy a dll generated by a subdirectory into the path of my main binary. Is this possible with cmkr? If not pls implement
cmake-after = """
add_custom_command(TARGET the_target PRE_BUILD
COMMAND ${CMAKE_COMMAND} -E copy
${CMAKE_SOURCE_DIR}/yourfile.dll $<TARGET_FILE_DIR:the_target>/yourfile.dll)
"""
Would be one way
Thanks. Can you explain to me what does these commands mean? Also you should add a simpler way to do it the whole point of this project is that it’s cmake for retards, and I don’t think a retard can understand that command.
Like what the hell does triple quote mean
Feel free to use CMake instead.
This feature currently isn’t supported but I’ll add it eventually. The triple quotes are a part of TOML to allow a string with “ and \ etc inside (same as python).
https://github.com/mrexodia/AppInitHook/blob/master/cmake.toml#L23
This is what you want to use, it will put all the output files next to each other no matter the subdirectory structure (also this will become a built-in feature).
Feel free to use CMake instead.
I saw some cool people like Mr. Can Boluk and xerox_ using cmkr so I want to use it too to be cool like them. I don’t mean any hate so sorry if I sounded rude
https://github.com/mrexodia/AppInitHook/blob/master/cmake.toml#L23
This is what you want to use, it will put all the output files next to each other no matter the subdirectory structure (also this will become a built-in feature).
Thanks mr your the best :)
This would be solved by something similar to https://github.com/mrexodia/AppInitHook/blob/master/CMake/flatten-build-hierarchy.cmake
Perhaps:
[project]
flatten-build = true