Fixing linux build
This commit is contained in:
+13
-2
@@ -24,6 +24,11 @@ ENDIF()
|
||||
set(Boost_USE_STATIC_LIBS ON)
|
||||
set(Boost_LIB_PREFIX lib)
|
||||
set(Boost_USE_RELEASE_LIBS OFF)
|
||||
set(ENKITS_BUILD_EXAMPLES OFF CACHE BOOL "Build basic example applications" )
|
||||
set(GLFW_BUILD_EXAMPLES OFF CACHE BOOL "GLFW lib only" )
|
||||
set(GLFW_BUILD_TESTS OFF CACHE BOOL "GLFW lib only" )
|
||||
set(GLFW_BUILD_DOCS OFF CACHE BOOL "GLFW lib only" )
|
||||
set(GLFW_BUILD_INSTALL OFF CACHE BOOL "GLFW lib only" )
|
||||
|
||||
if (USE_SUPERBUILD)
|
||||
project (SUPERBUILD NONE)
|
||||
@@ -35,10 +40,11 @@ else()
|
||||
project (Seele)
|
||||
endif()
|
||||
|
||||
add_subdirectory(${GLFW_ROOT})
|
||||
find_package(Vulkan REQUIRED)
|
||||
find_package(Boost REQUIRED COMPONENTS serialization)
|
||||
|
||||
include_directories(${GLFW_INCLUDE_DIRS})
|
||||
include_directories(${GLFW_ROOT}/include)
|
||||
include_directories(${GLM_INCLUDE_DIRS})
|
||||
include_directories(${Vulkan_INCLUDE_DIR})
|
||||
include_directories(${Boost_INCLUDE_DIRS})
|
||||
@@ -48,13 +54,18 @@ add_definitions(${GLM_DEFINITIONS})
|
||||
add_definitions(${Vulkan_DEFINITIONS})
|
||||
add_definitions(${Boost_DEFINITIONS})
|
||||
add_compile_definitions(GLFW_WINDOWS)
|
||||
if(WIN32)
|
||||
add_compile_definitions(USE_EXTENSIONS)
|
||||
endif()
|
||||
add_executable(SeeleEngine "")
|
||||
add_subdirectory(src/)
|
||||
target_link_libraries(SeeleEngine ${Boost_LIBRARIES})
|
||||
target_link_libraries(SeeleEngine ${Vulkan_LIBRARY})
|
||||
target_link_libraries(SeeleEngine ${GLFW_LIBRARY})
|
||||
target_link_libraries(SeeleEngine glfw ${GLFW_LIBRARIES})
|
||||
target_link_libraries(SeeleEngine ${SLANG_LIBRARY})
|
||||
|
||||
message(Libs: ${GLFW_LIBRARIES})
|
||||
|
||||
add_subdirectory(test/)
|
||||
|
||||
add_custom_command(TARGET SeeleEngine POST_BUILD COMMAND ${CMAKE_COMMAND} -E copy_if_different ${DEPENDENT_BINARIES} $<TARGET_FILE_DIR:SeeleEngine>)
|
||||
|
||||
Reference in New Issue
Block a user