https://github.com/Kitware/CMake
Raw File
Tip revision: c9b27dace7e4110b25d5889e9c6952d0f4a7ca58 authored by Brad King on 06 April 2021, 17:21:53 UTC
CMake 3.19.8
Tip revision: c9b27da
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