Skip to content

Commit

Permalink
Track and reproduce some issues
Browse files Browse the repository at this point in the history
  • Loading branch information
nanoant committed Apr 30, 2019
1 parent de76f60 commit 4d8815c
Show file tree
Hide file tree
Showing 15 changed files with 61 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
CMakeCache.txt
CMakeFiles/
cmake_install.cmake
Makefile
*.ninja
.ninja*
demo
*.exe
*.so
*.a
*.dylib
*.lib
*.dll
12 changes: 12 additions & 0 deletions Tests/Example1/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.0)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../..)

project(pchtest CXX CXXPCH)

add_library(engine SHARED src/engine.cpp src/library.cpp)
target_precompiled_header(engine src/prefix.h)

add_executable(demo src/demo.cpp)
target_link_libraries(demo engine)
target_precompiled_header(demo src/prefix.h REUSE engine)
5 changes: 5 additions & 0 deletions Tests/Example1/src/demo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
int main(int argc, char const *argv[])
{
/* code */
return 0;
}
Empty file added Tests/Example1/src/engine.cpp
Empty file.
Empty file added Tests/Example1/src/library.cpp
Empty file.
Empty file added Tests/Example1/src/prefix.h
Empty file.
Empty file.
Empty file.
9 changes: 9 additions & 0 deletions Tests/Issue24_RelativePathPrefix/subproject/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
cmake_minimum_required(VERSION 3.0)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../../..)

project(pchtest CXX CXXPCH)
# project(pchtest CXX)

add_executable(demo demo.cpp ../shared.cpp)
target_precompiled_header(demo ../prefix.h)
5 changes: 5 additions & 0 deletions Tests/Issue24_RelativePathPrefix/subproject/demo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
int main(int argc, char const *argv[])
{
/* code */
return 0;
}
12 changes: 12 additions & 0 deletions Tests/Issue29_CyclicDependency/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
cmake_minimum_required(VERSION 3.0)

list(APPEND CMAKE_MODULE_PATH ${CMAKE_SOURCE_DIR}/../..)

project(pchtest CXX CXXPCH)

add_library(engine src/engine.cpp src/library.cpp)
target_precompiled_header(engine src/prefix.h)

add_executable(demo src/demo.cpp)
target_link_libraries(demo engine)
target_precompiled_header(demo src/prefix.h REUSE engine)
5 changes: 5 additions & 0 deletions Tests/Issue29_CyclicDependency/src/demo.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
int main(int argc, char const *argv[])
{
/* code */
return 0;
}
Empty file.
Empty file.
Empty file.

0 comments on commit 4d8815c

Please sign in to comment.