make core name a cmake option

This commit is contained in:
Eyck Jentzsch 2021-05-13 09:32:38 +02:00
parent 391f9bb808
commit a1fa8877f7
1 changed files with 2 additions and 5 deletions

View File

@ -51,11 +51,8 @@ endif()
# Define the library # Define the library
add_library(${PROJECT_NAME} SHARED ${LIB_SOURCES}) add_library(${PROJECT_NAME} SHARED ${LIB_SOURCES})
# list code gen dependencies # list code gen dependencies
if(TARGET TGF_B_src) if(TARGET ${CORE_NAME}_src)
add_dependencies(${PROJECT_NAME} TGF_B_src) add_dependencies(${PROJECT_NAME} ${CORE_NAME}_src)
endif()
if(TARGET TGF_C_src)
add_dependencies(${PROJECT_NAME} TGF_C_src)
endif() endif()
target_compile_options(${PROJECT_NAME} PRIVATE -Wno-shift-count-overflow) target_compile_options(${PROJECT_NAME} PRIVATE -Wno-shift-count-overflow)