Skip to content

Commit

Permalink
[#2] Fix interdependencies and CMake warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
MrDmitry committed Dec 11, 2018
1 parent 060a67e commit 34b07ec
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 22 deletions.
24 changes: 12 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,18 @@ if (Mule_FOUND)
include(${Mule_CONFIG_DIR}/MuleUtilitiesConfig.cmake)
endif()

# Tulpar
message("====================================")
message("== Preparing Tulpar audio library ==")
message("====================================")

set(TULPAR_BUILD_DOCUMENTATION ${SLEIPNIR_BUILD_DOCUMENTATION} CACHE BOOL "Build Tulpar documentation")
set(TULPAR_BUILD_DEMOS OFF CACHE BOOL "Build Tulpar demos")
set(TULPAR_BUILD_TESTS OFF CACHE BOOL "Build Tulpar tests")
set(TULPAR_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/godlike/Tulpar" CACHE STRING "Tulpar root directory.")

add_subdirectory(${TULPAR_ROOT})

# Unicorn Render
message("========================================")
message("== Preparing Unicorn rendering engine ==")
Expand Down Expand Up @@ -120,18 +132,6 @@ set(PEGASUS_BUILD_DEBUG OFF CACHE BOOL "Build Pegasus debug.")

add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/godlike/Pegasus)

# Tulpar
message("====================================")
message("== Preparing Tulpar audio library ==")
message("====================================")

set(TULPAR_BUILD_DOCUMENTATION ${SLEIPNIR_BUILD_DOCUMENTATION} CACHE BOOL "Build Tulpar documentation")
set(TULPAR_BUILD_DEMOS OFF CACHE BOOL "Build Tulpar demos")
set(TULPAR_BUILD_TESTS OFF CACHE BOOL "Build Tulpar tests")
set(TULPAR_ROOT "${CMAKE_CURRENT_SOURCE_DIR}/godlike/Tulpar" CACHE STRING "Tulpar root directory.")

add_subdirectory(${TULPAR_ROOT})

# Install information
message("=====================================")
message("== Preparing packaging information ==")
Expand Down
6 changes: 4 additions & 2 deletions SleipnirEngine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ project(SleipnirEngine)

set(SLEIPNIR_LIB_ALIAS Sleipnir::Engine)

add_library(${PROJECT_NAME})
add_library(${PROJECT_NAME} "")
add_library(${PROJECT_NAME}::${PROJECT_NAME} ALIAS ${PROJECT_NAME})
add_library(${SLEIPNIR_LIB_ALIAS} ALIAS ${PROJECT_NAME})

Expand Down Expand Up @@ -68,6 +68,8 @@ target_include_directories(${PROJECT_NAME}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/include>
$<INSTALL_INTERFACE:${SLEIPNIR_INSTALL_INCLUDE_DIR}>
$<TARGET_PROPERTY:Sleipnir::Engine::ECS,INTERFACE_INCLUDE_DIRECTORIES>
$<TARGET_PROPERTY:Sleipnir::Engine::Utility,INTERFACE_INCLUDE_DIRECTORIES>
)

# external depencies
Expand All @@ -84,7 +86,7 @@ if (UNIX)
endif()

target_link_libraries(${PROJECT_NAME}
PUBLIC
PRIVATE
${EXPORT_SYMBOLS_PREFIX}
Sleipnir::Engine::ECS
Sleipnir::Engine::Utility
Expand Down
2 changes: 1 addition & 1 deletion SleipnirEngine/ecs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_policy(VERSION 3.8)

project(SleipnirEngine_ECS)

add_library(${PROJECT_NAME} STATIC)
add_library(${PROJECT_NAME} STATIC "")
add_library(Sleipnir::Engine::ECS ALIAS ${PROJECT_NAME})

set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
Expand Down
2 changes: 1 addition & 1 deletion SleipnirEngine/utility/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ cmake_policy(VERSION 3.8)

project(SleipnirEngine_Utility)

add_library(${PROJECT_NAME} STATIC)
add_library(${PROJECT_NAME} STATIC "")
add_library(Sleipnir::Engine::Utility ALIAS ${PROJECT_NAME})

set_property(TARGET ${PROJECT_NAME} PROPERTY CXX_STANDARD 17)
Expand Down
2 changes: 1 addition & 1 deletion godlike/Arion
2 changes: 1 addition & 1 deletion godlike/Epona
2 changes: 1 addition & 1 deletion godlike/Mule
2 changes: 1 addition & 1 deletion godlike/Pegasus
2 changes: 1 addition & 1 deletion godlike/Tulpar

0 comments on commit 34b07ec

Please sign in to comment.