) This results in components JustExe and JustLib but not App. ) INSTALL (TARGETS library COMPONENT App COMPONENT JustLib. Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/3/bin/Host圆4/圆4/cl. INSTALL (TARGETS executable COMPONENT App COMPONENT JustExe. If the install target is run then this also enables all built. Check for working C compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/3/bin/Host圆4/圆4/cl.exe - skipped This results in all of the (enabled) documentation targets being as part of a normal build. The CXX compiler identification is MSVC 3.0 The C compiler identification is MSVC 3.0
#Cmake install target windows#
Selecting Windows SDK version 1.0 to target Windows 3. PS D:\work\modern_cmake_work\ModernCMake\codes\lib_import\build> cmake. GConfiguration to be 'Release' or 'Debug' (currently 'release').įoolib.vcxproj -> D:\work\modern_cmake_work\ModernCMake\codes\lib_export\build\Release\foolib.libĪpp.vcxproj -> D:\work\modern_cmake_work\ModernCMake\codes\lib_export\build\Release\app.exe Vcpkg is unable to link because we cannot decide between Release and Debug libraries. To keep everything libraries provide structured (libs, headers) I want to install (like make installdoes) libraries to local building folder and then include generated cmake-file to import needed targets to my project. NET Framework 的 Microsoft (R) 生成引擎版本 16.11.0+0538acc04īuilding Custom Rule D:/work/modern_cmake_work/ModernCMake/codes/lib_export/CMakeLists.txt
installtargets (It is provided for compatibility with older CMake code. This command has been superseded by the install () command. PS D:\work\modern_cmake_work\ModernCMake\codes\lib_export\build> cmake -build. installtargets Deprecated since version 3.0: Use the install (TARGETS) command instead. Cmake_minimum_required ( VERSION 3.15 ) project ( FooLibTest ) set ( PackageName "Foo" ) set ( INCLUDE_INSTALL_DIR include ) set ( LIB_INSTALL_DIR lib ) set ( LIB_NAME "foolib" ) add_library ( $ ) installtargets ¶ Deprecated since version 3.0: Use the install (TARGETS) command instead.