update cmake modules dir
This commit is contained in:
@@ -13,12 +13,12 @@ OPTION(ENABLE_WARNINGS_AS_ERRORS "Warnings are treated as Errors" ON)
|
|||||||
OPTION(ENABLE_STATIC_ANALYSIS "Enable Static Analysis Tools" OFF)
|
OPTION(ENABLE_STATIC_ANALYSIS "Enable Static Analysis Tools" OFF)
|
||||||
OPTION(ENABLE_SANITIZERS "Enable Sanitizer Tools" OFF)
|
OPTION(ENABLE_SANITIZERS "Enable Sanitizer Tools" OFF)
|
||||||
|
|
||||||
set(CMAKE_SCRIPTS_DIR ${CMAKE_CURRENT_LIST_DIR}/cmake)
|
list(APPEND CMAKE_MODULE_PATH ${CMAKE_CURRENT_SOURCE_DIR}/cmake)
|
||||||
|
|
||||||
include(${CMAKE_SCRIPTS_DIR}/compilerwarnings.cmake)
|
include(compilerwarnings)
|
||||||
include(${CMAKE_SCRIPTS_DIR}/sanitizers.cmake)
|
include(sanitizers)
|
||||||
include(${CMAKE_SCRIPTS_DIR}/staticanalysis.cmake)
|
include(staticanalysis)
|
||||||
include(${CMAKE_SCRIPTS_DIR}/cpm.cmake)
|
include(cpm)
|
||||||
|
|
||||||
if (ENABLE_TESTS)
|
if (ENABLE_TESTS)
|
||||||
message("-- Unit Testing Enabled")
|
message("-- Unit Testing Enabled")
|
||||||
|
|||||||
@@ -1,14 +1,15 @@
|
|||||||
include(${CMAKE_SCRIPTS_DIR}/googletest.cmake)
|
include(gtest)
|
||||||
set(current_target starter_window_test)
|
set(current_target starter_window_test)
|
||||||
|
|
||||||
add_executable(
|
add_executable(
|
||||||
${current_target}
|
${current_target}
|
||||||
test_main.cpp
|
test_main.cpp
|
||||||
)
|
)
|
||||||
|
|
||||||
target_link_libraries(
|
target_link_libraries(
|
||||||
${current_target}
|
${current_target}
|
||||||
gtest_main
|
PRIVATE
|
||||||
|
gtest_main
|
||||||
)
|
)
|
||||||
|
|
||||||
include(GoogleTest)
|
include(GoogleTest)
|
||||||
|
|||||||
Reference in New Issue
Block a user