diff options
Diffstat (limited to 'intern/cycles/app/CMakeLists.txt')
-rw-r--r-- | intern/cycles/app/CMakeLists.txt | 28 |
1 files changed, 13 insertions, 15 deletions
diff --git a/intern/cycles/app/CMakeLists.txt b/intern/cycles/app/CMakeLists.txt index 484d99c5ca7..872a95ed5a6 100644 --- a/intern/cycles/app/CMakeLists.txt +++ b/intern/cycles/app/CMakeLists.txt @@ -11,7 +11,7 @@ set(INC set(INC_SYS ) -set(LIBRARIES +set(LIB cycles_device cycles_kernel cycles_scene @@ -33,27 +33,23 @@ if(WITH_ALEMBIC) endif() if(WITH_CYCLES_OSL) - list(APPEND LIBRARIES cycles_kernel_osl) + list(APPEND LIB cycles_kernel_osl) endif() if(CYCLES_STANDALONE_REPOSITORY) - list(APPEND LIBRARIES extern_sky) + list(APPEND LIB extern_sky) else() - list(APPEND LIBRARIES bf_intern_sky) + list(APPEND LIB bf_intern_sky) endif() if(WITH_CYCLES_STANDALONE AND WITH_CYCLES_STANDALONE_GUI) add_definitions(${GL_DEFINITIONS}) - list(APPEND INC_SYS - ${GLEW_INCLUDE_DIR} - ${SDL2_INCLUDE_DIRS} - ) - list(APPEND LIBRARIES - ${CYCLES_GL_LIBRARIES} - ${SDL2_LIBRARIES} - ) + list(APPEND INC_SYS ${GLEW_INCLUDE_DIR} ${SDL2_INCLUDE_DIRS}) + list(APPEND LIB ${CYCLES_GL_LIBRARIES} ${CYCLES_GLEW_LIBRARIES} ${SDL2_LIBRARIES}) endif() +cycles_external_libraries_append(LIB) + # Common configuration. include_directories(${INC}) @@ -84,8 +80,7 @@ if(WITH_CYCLES_STANDALONE) add_executable(cycles ${SRC} ${INC} ${INC_SYS}) unset(SRC) - target_link_libraries(cycles ${LIBRARIES}) - cycles_target_link_libraries(cycles) + target_link_libraries(cycles PRIVATE ${LIB}) if(APPLE) if(WITH_OPENCOLORIO) @@ -128,9 +123,12 @@ if(WITH_CYCLES_CUBIN_COMPILER) set(INC ../../../extern/cuew/include ) + set(LIB + ) + cycles_external_libraries_append(LIB) add_executable(cycles_cubin_cc ${SRC}) include_directories(${INC}) - cycles_target_link_libraries(cycles_cubin_cc) + target_link_libraries(cycles_cubin_cc PRIVATE ${LIB}) unset(SRC) unset(INC) endif() |