How to build library using cmake in windows -
i have written library mylib , want write cmakelists enable users build library using cmake in both linux , windows system. mylib contains folders bin, include, lib , src. know cmake can generate vs solution files in windows, , users can build in vs generate .lib files. when tried it, .lib files under folder named "debug". should if want .lib files go under mylib/lib when user builds solution?
i newbie in cmake , hope can me on this.
thanks!
you can set target property library:
set_property(target mylib property library_output_directory_debug ${output_dir})
see cmake docs more infos:
Comments
Post a Comment