mirror of
https://github.com/projectM-visualizer/projectm.git
synced 2026-03-14 11:25:47 +00:00
- 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.
16 lines
338 B
CMake
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")
|