mirror of
https://github.com/dankamongmen/notcurses.git
synced 2024-11-16 00:13:00 +00:00
9135663529
Partially reverts: c5c9432ac0
Context: https://github.com/dankamongmen/notcurses/pull/1146
The above commit implemented the much more convenient way of finding and
using a package from CMake, however it broke compatibility with the way
id had been before, which defined various `Notcurses_*` variables.
Revert the `Notcurses` component to the old way and add support for
`Notcurses++` in the same fashion.
Perhaps one day we should think of implementing `find_package` support
by way of a module, which should make it possible to have the cake and
eat the cake. One day.
10 lines
296 B
CMake
10 lines
296 B
CMake
@PACKAGE_INIT@
|
|
set(Notcurses_DIR "@PACKAGE_SOME_INSTALL_DIR@")
|
|
|
|
# Compute paths
|
|
get_filename_component(Notcurses_CMAKE_DIR "${CMAKE_CURRENT_LIST_FILE}" PATH)
|
|
set(Notcurses_INCLUDE_DIRS "@CONF_INCLUDE_DIRS@")
|
|
set(Notcurses_LIBRARY_DIRS "@CONF_LIBRARY_DIRS@")
|
|
|
|
set(Notcurses_LIBRARIES -lnotcurses)
|