https://github.com/Kitware/CMake
Raw File
Tip revision: f506cc6bb2d16b8876bd6e38741e80fc88482d1f authored by Brad King on 28 October 2020, 12:03:20 UTC
CMake 3.19.0-rc2
Tip revision: f506cc6
CMakeLists.txt
# a simple test case
project (Simple)

add_executable (Simple simple.cxx)

add_library (simpleLib STATIC
  simpleLib.cxx
  simpleCLib.c
  simpleWe.cpp
  )

target_link_libraries (Simple simpleLib)

# make sure optimized libs are not used by debug builds
if(CMAKE_BUILD_TYPE MATCHES Debug)
  target_link_libraries(Simple optimized c:/not/here.lib )
endif()
back to top