set ( PRJ_SRC_LIST test.cpp )
set ( PRJ_LIBRARIES )
set ( PRJ_INCLUDE_DIRS )
set ( MY_DEBUG true )
set ( MY_IMPORT_PREFIX "d:/software/freeglut" )
set ( MY_GLUT_LIB_RELEASE "${MY_IMPORT_PREFIX}/lib/freeglut.lib" )
set ( MY_GLUT_LIB_DEBUG "${MY_IMPORT_PREFIX}/lib/freeglutd.lib" )
set ( MY_GLUT_INC "${MY_IMPORT_PREFIX}/include" )
if ( MY_DEBUG )
set ( MY_GLUT_LIB "${MY_GLUT_LIB_DEBUG}" )
else ()
set ( MY_GLUT_LIB "${MY_GLUT_LIB_RELEASE}" )
endif ()
list ( APPEND PRJ_INCLUDE_DIRS . )
list ( APPEND PRJ_INCLUDE_DIRS ${MY_GLUT_INC} )
list ( APPEND PRJ_LIBRARIES ${MY_GLUT_LIB} )
PS D:\work\AntTweakBar_work\test\build> cmake ../
-- Building for: Visual Studio 16 2019
-- Selecting Windows SDK version 10.0.19041.0 to target Windows 10.0.19043.
-- The CXX compiler identification is MSVC 19.29.30133.0
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: C:/Program Files (x86)/Microsoft Visual Studio/2019/Community/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Configuring done
-- Generating done
-- Build files have been written to: D:/work/AntTweakBar_work/test/buildcmake --build .
有:
PS D:\work\AntTweakBar_work\test\build> cmake --build .
用于 .NET Framework 的 Microsoft (R) 生成引擎版本 16.11.0+0538acc04
版权所有(C) Microsoft Corporation。保留所有权利。
Checking Build System
Building Custom Rule D:/work/AntTweakBar_work/test/CMakeLists.txt
test.cpp
glut_test.vcxproj -> D:\work\AntTweakBar_work\test\build\Debug\glut_test.exe
Building Custom Rule D:/work/AntTweakBar_work/test/CMakeLists.txt运行: