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

View File

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