https://github.com/Kitware/CMake
Raw File
Tip revision: 5ead1d0a257e352c35ac63b78f4884058b17b8f9 authored by Brad King on 28 July 2022, 17:19:49 UTC
CMake 3.24.0-rc5
Tip revision: 5ead1d0
CMakeLists.txt
# a simple CXX only test case
cmake_minimum_required(VERSION 2.8.12)
project (CxxOnly CXX)

set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
if(WIN32)
  set(EXTRA_SRCS test.CPP)
endif()
add_library(testcxx1.my STATIC libcxx1.cxx test.C ${EXTRA_SRCS})
add_library(testcxx2 SHARED libcxx2.cxx)
add_executable (CxxOnly cxxonly.cxx)
target_link_libraries(CxxOnly testcxx1.my testcxx2)

add_library(testCxxModule MODULE testCxxModule.cxx)
back to top