update cmake list for better organization
This commit is contained in:
Родитель
b52111e66a
Коммит
9a666ff02e
|
@ -1 +1,4 @@
|
|||
build
|
||||
build
|
||||
*egg-info
|
||||
dist
|
||||
*.so
|
|
@ -0,0 +1,21 @@
|
|||
cmake_minimum_required(VERSION 3.15.0 FATAL_ERROR)
|
||||
|
||||
project(custom_transform)
|
||||
set(LIB_NAME "_custom_parser")
|
||||
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/external_libs/LightGBM)
|
||||
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/src/)
|
||||
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR})
|
||||
|
||||
add_library(${LIB_NAME} SHARED ${CMAKE_CURRENT_SOURCE_DIR}/examples/freeform2_parser.cpp ${CMAKE_CURRENT_SOURCE_DIR}/external_libs/LightGBM/include)
|
||||
|
||||
target_include_directories(${LIB_NAME} PUBLIC ${CMAKE_CURRENT_SOURCE_DIR} ${CMAKE_CURRENT_SOURCE_DIR}/external_libs/LightGBM/include)
|
||||
|
||||
target_link_libraries(${LIB_NAME}
|
||||
-Wl,--no-as-needed
|
||||
-Wl,--start-group
|
||||
_lightgbm
|
||||
_transform
|
||||
-Wl,--end-group
|
||||
)
|
|
@ -48,41 +48,6 @@ set(LLVM_LIB
|
|||
LLVMX86Utils
|
||||
)
|
||||
|
||||
set(BOOST_LIB
|
||||
boost_atomic
|
||||
boost_chrono
|
||||
boost_context
|
||||
boost_coroutine
|
||||
boost_date_time
|
||||
boost_exception
|
||||
boost_filesystem
|
||||
boost_graph
|
||||
boost_graph_parallel
|
||||
boost_iostreams
|
||||
boost_locale
|
||||
boost_log
|
||||
boost_log_setup
|
||||
boost_math_c99
|
||||
boost_math_c99f
|
||||
boost_math_c99l
|
||||
boost_math_tr1
|
||||
boost_math_tr1f
|
||||
boost_math_tr1l
|
||||
boost_mpi
|
||||
boost_prg_exec_monitor
|
||||
boost_program_options
|
||||
boost_random
|
||||
boost_regex
|
||||
boost_serialization
|
||||
boost_system
|
||||
boost_test_exec_monitor
|
||||
boost_thread
|
||||
boost_timer
|
||||
boost_unit_test_framework
|
||||
boost_wave
|
||||
boost_wserialization
|
||||
)
|
||||
|
||||
set(CMAKE_POSITION_INDEPENDENT_CODE ON)
|
||||
if(USE_DEBUG)
|
||||
SET(CMAKE_BUILD_TYPE "Debug")
|
||||
|
|
|
@ -45,7 +45,7 @@ target_link_libraries(${PROJECT_NAME}
|
|||
DRFreeFormTransformLibrary
|
||||
DRFreeFormSExpressionLibrary
|
||||
DRFreeFormLibrary
|
||||
${BOOST_LIB}
|
||||
${Boost_LIBRARIES}
|
||||
${LLVM_LIB}
|
||||
-Wl,--end-group
|
||||
)
|
||||
|
|
|
@ -46,7 +46,7 @@ target_link_libraries(${PROJECT_NAME}
|
|||
DRFreeFormSExpressionLibrary
|
||||
DRFreeFormLibrary
|
||||
NeuralTreeEvaluatorLibrary
|
||||
${BOOST_LIB}
|
||||
${Boost_LIBRARIES}
|
||||
${LLVM_LIB}
|
||||
-Wl,--end-group
|
||||
)
|
||||
|
|
|
@ -2,7 +2,9 @@
|
|||
|
||||
set(PROJECT_NAME TransformProcessor)
|
||||
|
||||
Project(${PROJECT_NAME})
|
||||
project(${PROJECT_NAME})
|
||||
|
||||
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/../../)
|
||||
|
||||
add_library(_transform SHARED
|
||||
IniFileParserInterface.h
|
||||
|
@ -36,7 +38,7 @@ target_link_libraries(_transform
|
|||
DRFreeFormSExpressionLibrary
|
||||
DRFreeFormLibrary
|
||||
NeuralTreeEvaluatorLibrary
|
||||
${BOOST_LIB}
|
||||
${Boost_LIBRARIES}
|
||||
${LLVM_LIB}
|
||||
-Wl,--end-group
|
||||
)
|
||||
|
|
|
@ -39,7 +39,7 @@ target_link_libraries(${PROJECT_NAME}
|
|||
DRFreeFormLibrary
|
||||
NeuralTreeEvaluatorLibrary
|
||||
_transform
|
||||
${BOOST_LIB}
|
||||
${Boost_LIBRARIES}
|
||||
${LLVM_LIB}
|
||||
-Wl,--end-group
|
||||
)
|
||||
|
|
Загрузка…
Ссылка в новой задаче