diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2020-07-25 18:49:18 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-25 18:49:18 +0200 |
commit | 0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837 (patch) | |
tree | 3c760d4d981aad30fa151343c224d3ea366c99d9 /CMakeLists.txt | |
parent | Merge pull request #36 from LaG1924/fix-windows-vs2019 (diff) | |
parent | Completely removed hardcoded list of blockstates (diff) | |
download | AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.tar AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.tar.gz AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.tar.bz2 AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.tar.lz AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.tar.xz AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.tar.zst AltCraft-0a2ba2cdb8e01bbd7e9e8ef1d0582ef6a892f837.zip |
Diffstat (limited to '')
-rw-r--r-- | CMakeLists.txt | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt index ac8e5c8..dbe709e 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -23,6 +23,15 @@ add_executable(AltCraft ${HEADERS} ${SOURCES} ${MANIFEST}) # CONFIGURATION ################ +option(ENABLE_OPTICK "Enable profiler \"Optick \"?" OFF) + +#Configure Optick +if (${ENABLE_OPTICK}) + add_definitions(-DUSE_OPTICK=1) +else() + add_definitions(-DUSE_OPTICK=0) +endif() + #Configure easlylogging++ set(LOGGER_DEFINITIONS "-DELPP_THREAD_SAFE -DELPP_FEATURE_PERFORMANCE_TRACKING") if (LINUX) @@ -57,6 +66,11 @@ add_subdirectory(external) target_include_directories(AltCraft PUBLIC external/include) target_link_libraries(AltCraft deps) +target_include_directories(AltCraft PUBLIC external/optick) +if (${ENABLE_OPTICK}) + target_link_libraries(AltCraft optick) +endif() + #Setup SDL2 find_package(SDL2 REQUIRED) target_link_libraries(AltCraft ${SDL2_LIBRARY}) @@ -77,6 +91,11 @@ find_package(ZLIB REQUIRED) target_link_libraries(AltCraft ${ZLIB_LIBRARIES}) target_include_directories(AltCraft PUBLIC ${ZLIB_INCLUDE_DIRS}) +#Setup Lua +find_package(Lua REQUIRED) +target_link_libraries(AltCraft ${LUA_LIBRARIES}) +target_include_directories(AltCraft PUBLIC ${LUA_INCLUDE_DIR}) + ################# # COPY RESOURCES ################# |