-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
27 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
cmake_minimum_required(VERSION 3.15) | ||
project(cmake_wrapper LANGUAGES CXX) | ||
|
||
find_package(Eigen3 REQUIRED CONFIG) | ||
find_package(fast_double_parser REQUIRED CONFIG) | ||
find_package(fmt REQUIRED CONFIG) | ||
|
||
add_subdirectory(src) | ||
|
||
if(_MAJOR_VERSION GREATER_EQUAL 4) | ||
set(TARGETS lightgbm_objs lightgbm_capi_objs) | ||
set(VISIBILITY PRIVATE) | ||
else() | ||
set(TARGETS lightgbm _lightgbm) | ||
set(VISIBILITY "") | ||
endif() | ||
|
||
foreach(target ${TARGETS}) | ||
target_link_libraries(${target} ${VISIBILITY} Eigen3::Eigen fast_double_parser::fast_double_parser fmt::fmt) | ||
endforeach() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters