mirror of https://github.com/AxioDL/lzokay.git
Better CMake dependency integration
This commit is contained in:
parent
f7da328248
commit
55892696bb
|
@ -1,6 +1,6 @@
|
|||
cmake_minimum_required(VERSION 3.10)
|
||||
project(lzokay)
|
||||
add_library(lzokay lzokay.hpp lzokay.cpp)
|
||||
set(LZOKAY_INCLUDE_DIR ${CMAKE_CURRENT_SOURCE_DIR} CACHE PATH "lzokay include path" FORCE)
|
||||
add_executable(lzokaytest test.cpp)
|
||||
target_include_directories(lzokay PUBLIC $<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}>)
|
||||
target_link_libraries(lzokaytest lzokay)
|
Loading…
Reference in New Issue