Warning, /frameworks/threadweaver/examples/HelloWorld/CMakeLists.txt is written in an unsupported language. File is not indexed.

0001 # For more information see the CMake documentation:
0002 # https://cmake.org/documentation/
0003 # https://community.kde.org/Guidelines_and_HOWTOs/CMake
0004 ##@@snippet_begin(adding_tw_1)
0005 cmake_minimum_required(VERSION 3.0)
0006 find_package(ECM 1.1.0 REQUIRED NO_MODULE)
0007 ##@@snippet_end
0008 
0009 if(POLICY CMP0063)
0010     cmake_policy(SET CMP0063 NEW)
0011 endif()
0012 
0013 
0014 if (NOT TARGET KF6ThreadWeaver)
0015   # Find the ThreadWeaver framework when we compiling this example stand-alone
0016 ##@@snippet_begin(adding_tw_2)
0017 find_package(KF6ThreadWeaver ${KF_VERSION} REQUIRED)
0018 ##@@snippet_end
0019 endif()
0020 
0021 ##@@snippet_begin(adding_tw_3)
0022 # Define the project name
0023 project(HelloWorld)
0024 # Add the HelloWorld executable and link the ThreadWeaver
0025 # library to it
0026 add_executable(ThreadWeaver_HelloWorld HelloWorld.cpp)
0027 target_link_libraries(ThreadWeaver_HelloWorld KF6::ThreadWeaver)
0028 ##@@snippet_end