cmake configuration error:
Code: Select all
C:\Users\Raiden\Documents\programming\CopperTest\build>cmake ..
-- Selecting Windows SDK version 10.0.22621.0 to target Windows 10.0.19045.
CMake Error at CMakeLists.txt:8 (find_package):
By not providing "FindCopperSpice.cmake" in CMAKE_MODULE_PATH this project
has asked CMake to find a package configuration file provided by
"CopperSpice", but CMake did not find one.
Could not find a package configuration file provided by "CopperSpice" with
any of the following names:
CopperSpiceConfig.cmake
copperspice-config.cmake
Add the installation prefix of "CopperSpice" to CMAKE_PREFIX_PATH or set
"CopperSpice_DIR" to a directory containing one of the above files. If
"CopperSpice" provides a separate development package or SDK, be sure it
has been installed.
-- Configuring incomplete, errors occurred!
Code: Select all
cmake_minimum_required(VERSION 3.20)
project(CopperTest)
add_executable(CTest main.cpp)
list(APPEND ${CMAKE_MODULE_PATH} ${CMAKE_CURRENT_LIST_DIR}/copperspice-cs-1.8.2/cmake/modules)
find_package(CopperSpice REQUIRED)
CopperTest/
----------------build/
----------------main.cpp
----------------CMakeLists.txt
----------------copperspice-cs-1.8.2/
----------------copperspice-cs-1.8.2.zip
i build copperspice from source in the copperspice-cs-1.8.2 directory so the layout in there should be familiar.