summaryrefslogtreecommitdiff
path: root/Tests/VSMidl/src/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'Tests/VSMidl/src/CMakeLists.txt')
-rw-r--r--Tests/VSMidl/src/CMakeLists.txt12
1 files changed, 12 insertions, 0 deletions
diff --git a/Tests/VSMidl/src/CMakeLists.txt b/Tests/VSMidl/src/CMakeLists.txt
new file mode 100644
index 000000000..86c04ed98
--- /dev/null
+++ b/Tests/VSMidl/src/CMakeLists.txt
@@ -0,0 +1,12 @@
+cmake_minimum_required(VERSION 2.8)
+project(VSMidl)
+
+if(MSVC_VERSION GREATER 1200)
+ include_directories("${CMAKE_CURRENT_BINARY_DIR}/\$(IntDir)")
+else()
+ # midl generated headers end up directly in CMAKE_CURRENT_BINARY_DIR with
+ # VS6 builds.
+ include_directories("${CMAKE_CURRENT_BINARY_DIR}")
+endif()
+
+add_executable(VSMidl main.cpp test.idl)