-
Notifications
You must be signed in to change notification settings - Fork 65
Description
I want to customize my project output according to the type, it does work well under visualstudio using the following mpb config:
......
specific(vs2017) {
dllout=$(SolutionDir)2017/$(PlatformName)/bin
libout=$(SolutionDir)2017/$(PlatformName)/lib
libpaths+=$(SolutionDir)2017/$(PlatformName)/lib
}
specific(vs2019) {
dllout=$(SolutionDir)2019/$(PlatformName)/bin
libout=$(SolutionDir)2019/$(PlatformName)/lib
libpaths+=$(SolutionDir)2019/$(PlatformName)/lib
}
specific(vs2022) {
dllout=$(SolutionDir)2022/$(PlatformName)/bin
libout=$(SolutionDir)2022/$(PlatformName)/lib
libpaths+=$(SolutionDir)2022/$(PlatformName)/lib
}
specific(make) {
obj_dir=./objs/
//conditional(prop:windows) {
// dllout=$(SLN_ROOT)/mingw/bin
//}
//conditional(!prop:windows) {
// dllout=$(SLN_ROOT)/mingw/lib
//}
dllout=$(SLN_ROOT)/mingw/lib
libout=$(SLN_ROOT)/mingw/lib
libpaths+=$(SLN_ROOT)/mingw/lib
}
specific(cmake) {
//conditional(prop:windows) {
// dllout=${CMAKE_SOURCE_DIR}/bin
//}
//conditional(!prop:windows) {
// dllout=${CMAKE_SOURCE_DIR}/lib
//}
dllout=${CMAKE_SOURCE_DIR}/bin
libout=${CMAKE_SOURCE_DIR}/lib
libpaths+=${CMAKE_SOURCE_DIR}/lib
}
.....
but make and cmake is a cross platform project type, dll file used to output in the bin folder under windows, while under linux so file used to put in the lib folder, Is there any solution to make my upper cmake config work ? may thanks