mirror of
https://github.com/aseprite/aseprite.git
synced 2025-02-28 06:39:53 +00:00
Fix problems compiling unittests with a Visual Studio solution.
This commit is contained in:
parent
73178cd452
commit
bc22007455
@ -57,4 +57,7 @@ have the source code in a directory called "ase-source-dir"):
|
||||
opening the solution, etc.
|
||||
|
||||
4) When the project is compiled, you can copy "build/src/aseprite.exe"
|
||||
file to "ase-source-dir" and execute it.
|
||||
file to "ase-source-dir" and execute it. If you have used a Visual
|
||||
Studio project, you can copy the whole "data/" directory to
|
||||
"build/src/RelWithDebInfo/" so you can run/debug the program
|
||||
from Visual Studio IDE.
|
||||
|
@ -283,8 +283,7 @@ foreach(testsourcefile ${tests})
|
||||
target_link_libraries(${testname} gtest ${all_libs})
|
||||
|
||||
# Add gtest include directory so we can #include <gtest/gtest.h> in tests source code
|
||||
set_target_properties(${testname} PROPERTIES
|
||||
COMPILE_FLAGS "-I${CMAKE_SOURCE_DIR}/third_party/gtest/include")
|
||||
include_directories(${CMAKE_SOURCE_DIR}/third_party/gtest/include)
|
||||
|
||||
add_custom_target(run_${testname}
|
||||
COMMAND ${testname})
|
||||
|
Loading…
x
Reference in New Issue
Block a user