Skip to content

Commit

Permalink
all: Ensure editable mode works for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
cassava committed Jan 7, 2021
1 parent 77a135a commit 2b5cf81
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 23 deletions.
1 change: 1 addition & 0 deletions engine/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ add_executable(${target}
set_target_properties(${target} PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/bin
OUTPUT_NAME ${output}
)
target_compile_definitions(${target}
Expand Down
9 changes: 6 additions & 3 deletions models/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,12 @@ add_library(${target}
)
add_library(${alias} ALIAS ${target})
set_target_properties(${target} PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
VERSION ${CLOE_PROJECT_VERSION}
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
VERSION ${CLOE_PROJECT_VERSION}
)
set_target_linting(${target})
target_include_directories(${target}
Expand Down
3 changes: 3 additions & 0 deletions oak/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ set_target_linting(${target})
set_target_properties(${target} PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
)
target_include_directories(${target}
PUBLIC
Expand Down
5 changes: 3 additions & 2 deletions runtime/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,14 @@ add_library(${alias} ALIAS ${target})
set_target_properties(${target} PROPERTIES
CXX_STANDARD 14
CXX_STANDARD_REQUIRED ON
ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/lib
VERSION ${CLOE_PROJECT_VERSION}
)
set_target_linting(${target})
target_include_directories(${target}
PUBLIC
$<BUILD_INTERFACE:${CMAKE_CURRENT_BINARY_DIR}/src>
$<BUILD_INTERFACE:${CMAKE_CURRENT_SOURCE_DIR}/src>
include
)
target_link_libraries(${target}
Expand Down
2 changes: 0 additions & 2 deletions runtime/Makefile
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
PROJECT_ROOT := ..

override BUILD_LAYOUT := layout.ini

include ${PROJECT_ROOT}/Makefile.package

# If BUILD_TESTS is disabled, we need to use the dependencies that
Expand Down
16 changes: 0 additions & 16 deletions runtime/layout.ini

This file was deleted.

0 comments on commit 2b5cf81

Please sign in to comment.