https://github.com/Kitware/CMake
Raw File
Tip revision: 67a1e2a5d17aec461ed464fa254fb01f32a0a384 authored by Brad King on 22 February 2023, 15:06:26 UTC
CMake 3.26.0-rc4
Tip revision: 67a1e2a
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