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

Popular posts from this blog

image - ClassNotFoundException when add a prebuilt apk into system.img in android -

I need to import mysql 5.1 to 5.5? -

Java, Hibernate, MySQL - store UTC date-time -