Skip to content

Commit

Permalink
pch
Browse files Browse the repository at this point in the history
  • Loading branch information
Ubpa committed Jan 23, 2021
1 parent 487c580 commit f544478
Show file tree
Hide file tree
Showing 22 changed files with 87 additions and 42 deletions.
3 changes: 3 additions & 0 deletions src/core/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
Ubpa_AddTarget(
MODE STATIC
RET_TARGET_NAME tname
SOURCE
"${PROJECT_SOURCE_DIR}/include/UECS"
LIB
Expand All @@ -8,3 +9,5 @@ Ubpa_AddTarget(
INC
"${PROJECT_SOURCE_DIR}/include"
)

target_precompile_headers(${tname} PRIVATE "${PROJECT_SOURCE_DIR}/include/UECS/World.h")
6 changes: 4 additions & 2 deletions src/test/00_basic/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/01_tag/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/02_order/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/03_query_entity/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/04_filter/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/05_alignment/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/06_none_parallel/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/07_overload/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/08_job/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/10_instantiate/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/11_runtime_cmpt/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/12_framegraph/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/13_performance/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/14_serialize/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/15_chunk_job/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/16_singleton/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/17_serial/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/18_copy/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/19_direct_run/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/20_system_lifecycle/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)
6 changes: 4 additions & 2 deletions src/test/21_random/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
Ubpa_GetTargetName(core "${PROJECT_SOURCE_DIR}/src/core")
Ubpa_AddTarget(
TEST
RET_TARGET_NAME tname
MODE EXE
LIB ${core}
LIB
Ubpa::UECS_core
)
target_precompile_headers(${tname} REUSE_FROM UECS_core)

0 comments on commit f544478

Please sign in to comment.