Permalink
Browse files

C++ example uses ATOMIC_INCLUDE_DIRS

  • Loading branch information...
1 parent b867bc1 commit 4be4129f4a585f2a2c74f65cc07838ad20ec2748 @rokups rokups committed Nov 23, 2016
Showing with 4 additions and 9 deletions.
  1. +4 −9 FeatureExamples/CPlusPlus/CMakeLists.txt
@@ -1,11 +1,6 @@
-include_directories(${CMAKE_SOURCE_DIR}/Source)
-include_directories ( ${CMAKE_SOURCE_DIR}/Source/ThirdParty
- ${CMAKE_SOURCE_DIR}/Source/ThirdParty/rapidjson/include
- ${CMAKE_SOURCE_DIR}/Source/ThirdParty/kNet/include
- ${CMAKE_SOURCE_DIR}/Source/ThirdParty/FreeType/include
- ${CMAKE_SOURCE_DIR}/Source/ThirdParty/Box2D )
+include_directories(${ATOMIC_INCLUDE_DIRS})
# Define source files
file (GLOB SOURCE_FILES Source/*.cpp Source/*.h)
@@ -21,9 +16,9 @@ target_link_libraries(FeatureExamples ${ATOMIC_LINK_LIBRARIES})
# Copy AtomicTool to Artifacts
add_custom_command( TARGET FeatureExamples POST_BUILD
COMMAND "${CMAKE_COMMAND}"
- ARGS -E make_directory \"${CMAKE_SOURCE_DIR}/Artifacts/Examples/CPlusPlus\"
+ ARGS -E make_directory \"${ATOMIC_SOURCE_DIR}/Artifacts/Examples/CPlusPlus\"
COMMAND "${CMAKE_COMMAND}"
- ARGS -E copy_if_different \"$<TARGET_FILE:FeatureExamples>\" \"${CMAKE_SOURCE_DIR}/Artifacts/Examples/CPlusPlus/\"
+ ARGS -E copy_if_different \"$<TARGET_FILE:FeatureExamples>\" \"${ATOMIC_SOURCE_DIR}/Artifacts/Examples/CPlusPlus/\"
COMMENT "Copying FeatureExamples to Build Artifacts" )
if (MSVC)
@@ -33,6 +28,6 @@ if (MSVC)
COMMAND ${CMAKE_COMMAND}
ARGS -E copy_if_different \"${D3DCOMPILER_47_DLL}\" \"$<TARGET_FILE_DIR:FeatureExamples>/D3DCompiler_47.dll\"
COMMAND ${CMAKE_COMMAND}
- ARGS -E copy_if_different \"${D3DCOMPILER_47_DLL}\" \"${CMAKE_SOURCE_DIR}/Artifacts/Examples/CPlusPlus/D3DCompiler_47.dll\" )
+ ARGS -E copy_if_different \"${D3DCOMPILER_47_DLL}\" \"${ATOMIC_SOURCE_DIR}/Artifacts/Examples/CPlusPlus/D3DCompiler_47.dll\" )
endif(MSVC)

0 comments on commit 4be4129

Please sign in to comment.