https://github.com/Kitware/CMake
Raw File
Tip revision: 4771c4e447c88a0e6a361d98c2c6f44ac7746ad3 authored by Brad King on 10 December 2019, 14:40:28 UTC
CMake 3.16.1
Tip revision: 4771c4e
CMakeLists.txt
# a simple CXX only test case
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 ${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