Files
projectm/src/libprojectM/libprojectMConfig.cmake.in
Kai Blaschke 2f8b188195 Some CMake build fixes, mostly affecting Windows builds.
- Got rid of the WORD_BITS usage in omptl_tools.h, which is a macro that is only defined on UNIX platforms, but not MSVC.
- Removed export(PACKAGE) call, as it's been disabled/deprecated since CMake 3.15 and puts a half-baked config into the registry. Better install and use CMAKE_PREFIX_PATH.
- Removed set_and_check commands in the package config file, added missing include for the target definition file.
- Added "lib" prefix to the static library file on Windows as it will otherwise have the exact same name (projectM.lib) as the shared library exports file.
- Enable shared library building on Windows by default as on all other platforms.
- On Windows, search for package GLEW as it's required.
2022-02-28 18:04:25 +01:00

16 lines
338 B
CMake

set(libprojectM_VERSION @PROJECT_VERSION@)
@PACKAGE_INIT@
include(CMakeFindDependencyMacro)
find_dependency(OpenGL)
if("@ENABLE_THREADING@") # ENABLE_THREADING
find_dependency(Threads)
endif()
if(CMAKE_SYSTEM_NAME STREQUAL "Windows")
find_dependency(GLEW)
endif()
include("${CMAKE_CURRENT_LIST_DIR}/libprojectMTargets.cmake")