windows - How to generate .dll file with cmake? -
i trying generate dll
file source file in cmake. giving configured done , generated done.but .dll
, .lib
files not generated. please provide solution problem.
my cmake configuration in root :
cmake_minimum_required(version 2.8) project(mydll c) include_directories(../common/include) add_subdirectory(mydll bin) cmake configuration in mydll directory : set(my_lib_src dllmain.cpp mydll.cpp funcs.def) add_library(mydll shared ${my_lib_src}) set_target_properties(mydll properties linker_language c)
i make response, not in comment.
you problem here not compiling solution, generating it...
it seems can build project command line :
cmake --build <dir> [options] [-- [native-options]] <dir> = project binary directory built. --target <tgt> = build <tgt> instead of default targets. --config <cfg> = multi-configuration tools, choose <cfg>. --clean-first = build target 'clean' first, build. (to clean only, use --target 'clean'.) --use-stderr = don't merge stdout/stderr. -- = pass remaining options native tool
but didn't try it...
Comments
Post a Comment