EliasFarhan/NekoEngine

problème generate Cmake Fmod

Closed this issue · 1 comments

voici l'erreur qui me sort cmake :

CMake Error at externals/Fmod-2.00.08/CMakeLists.txt:7 (add_library):
  No SOURCES given to target: fmod

voici le contenu de ma Cmakeliste :

if(UNIX)
file(GLOB_RECURSE fmod_src "/linux/api/core/include/*.h" "/linux/api/core/src/*.cpp")
else()
file(GLOB_RECURSE fmod_src "/win/api/core/include/*.h" "/win/api/core/src/*.cpp")
endif()
add_library(fmod STATIC ${fmod_src})
if(UNIX)
include_directories("${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/linux/api/core/lib/x86/" "${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/linux/api/studio/inc/x86/")

link_directories("${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/linux/api/core/lib/x86/" "${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/linux/api/studio/inc/x86/")


target_link_libraries(fmod
    libfmod
    libfmodL
    libfmodstudio
    libfmodstudioL)


else()
include_directories("${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/win/api/core/lib/x86/" "${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/win/api/studio/inc/x86/")

link_directories("${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/win/api/core/lib/x86/" "${CMAKE_SOURCE_DIR}/externals/Fmod-2.00.08/win/api/studio/inc/x86/")

target_link_libraries(fmod
        fmod_vc
        fmodL_vc
		fmodstudio_vc
    	fmodstudioL_vc)


endif()


l'erreur se trouve a cette ligne

add_library(fmod STATIC ${fmod_src})