-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0fad530
commit dd6c809
Showing
11 changed files
with
41 additions
and
64 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,29 @@ | ||
add_subdirectory(iter) | ||
add_subdirectory(duel) | ||
add_subdirectory(entity) | ||
add_subdirectory(mt) | ||
add_subdirectory(app) | ||
|
||
# Preprocessor | ||
add_definitions(-DGAIA_DEBUG=0) | ||
add_compile_definitions(GAIA_DEBUG=0) | ||
|
||
# Profiler | ||
if(GAIA_PROFILER_CPU OR GAIA_PROFILER_MEM) | ||
if(GAIA_PROFILER_CPU) | ||
add_compile_definitions(PRIVATE GAIA_PROFILER_CPU=1) | ||
add_compile_definitions(GAIA_PROFILER_CPU=1) | ||
endif() | ||
|
||
if(GAIA_PROFILER_MEM) | ||
add_compile_definitions(PRIVATE GAIA_PROFILER_MEM=1) | ||
add_compile_definitions(GAIA_PROFILER_MEM=1) | ||
endif() | ||
|
||
link_libraries(PRIVATE TracyClient) | ||
link_libraries(TracyClient) | ||
endif() | ||
|
||
include_directories(${PROJECT_SOURCE_DIR}/include) | ||
include_directories(${picobench_SOURCE_DIR}/include) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
link_libraries(Threads::Threads) | ||
link_libraries(picobench::picobench) | ||
|
||
add_subdirectory(iter) | ||
add_subdirectory(duel) | ||
add_subdirectory(entity) | ||
add_subdirectory(mt) | ||
add_subdirectory(app) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
set(PROJ_NAME "gaia_perf_app") | ||
add_executable(${PROJ_NAME} src/main.cpp) | ||
|
||
target_include_directories(${PROJ_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJ_NAME} PRIVATE ${picobench_SOURCE_DIR}/include) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
target_link_libraries(${PROJ_NAME} PRIVATE Threads::Threads) | ||
target_link_libraries(${PROJ_NAME} PRIVATE picobench::picobench) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
set(PROJ_NAME "gaia_perf_duel") | ||
add_executable(${PROJ_NAME} src/main.cpp) | ||
|
||
target_include_directories(${PROJ_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJ_NAME} PRIVATE ${picobench_SOURCE_DIR}/include) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
target_link_libraries(${PROJ_NAME} PRIVATE Threads::Threads) | ||
target_link_libraries(${PROJ_NAME} PRIVATE picobench::picobench) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,2 @@ | ||
set(PROJ_NAME "gaia_perf_entity") | ||
add_executable(${PROJ_NAME} src/main.cpp) | ||
|
||
if(MSVC) | ||
# Necessary because VS might complain about too many sections used in debug builds | ||
target_compile_options(${PROJ_NAME} PRIVATE /bigobj) | ||
endif() | ||
|
||
target_include_directories(${PROJ_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJ_NAME} PRIVATE ${picobench_SOURCE_DIR}/include) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
target_link_libraries(${PROJ_NAME} PRIVATE Threads::Threads) | ||
target_link_libraries(${PROJ_NAME} PRIVATE picobench::picobench) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
set(PROJ_NAME "gaia_perf_iter") | ||
add_executable(${PROJ_NAME} src/main.cpp) | ||
|
||
target_include_directories(${PROJ_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJ_NAME} PRIVATE ${picobench_SOURCE_DIR}/include) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
target_link_libraries(${PROJ_NAME} PRIVATE Threads::Threads) | ||
target_link_libraries(${PROJ_NAME} PRIVATE picobench::picobench) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,2 @@ | ||
set(PROJ_NAME "gaia_perf_mt") | ||
add_executable(${PROJ_NAME} src/main.cpp) | ||
|
||
target_include_directories(${PROJ_NAME} PRIVATE ${PROJECT_SOURCE_DIR}/include) | ||
target_include_directories(${PROJ_NAME} PRIVATE ${picobench_SOURCE_DIR}/include) | ||
|
||
set(THREADS_PREFER_PTHREAD_FLAG ON) | ||
find_package(Threads REQUIRED) | ||
target_link_libraries(${PROJ_NAME} PRIVATE Threads::Threads) | ||
target_link_libraries(${PROJ_NAME} PRIVATE picobench::picobench) |