2008-10-12 18:41:06 +02:00
|
|
|
# a simple CXX only test case
|
2023-07-02 19:51:09 +02:00
|
|
|
cmake_minimum_required(VERSION 3.5)
|
2008-10-12 18:41:06 +02:00
|
|
|
project (CxxOnly CXX)
|
|
|
|
|
|
|
|
set(CMAKE_DEBUG_POSTFIX "_test_debug_postfix")
|
2010-11-13 01:00:53 +02:00
|
|
|
if(WIN32)
|
|
|
|
set(EXTRA_SRCS test.CPP)
|
|
|
|
endif()
|
2020-08-30 11:54:41 +02:00
|
|
|
add_library(testcxx1.my STATIC libcxx1.cxx test.C ${EXTRA_SRCS})
|
2008-10-12 18:41:06 +02:00
|
|
|
add_library(testcxx2 SHARED libcxx2.cxx)
|
|
|
|
add_executable (CxxOnly cxxonly.cxx)
|
2010-11-13 01:00:53 +02:00
|
|
|
target_link_libraries(CxxOnly testcxx1.my testcxx2)
|
2012-04-19 19:04:21 +03:00
|
|
|
|
|
|
|
add_library(testCxxModule MODULE testCxxModule.cxx)
|