Browse Source

Build tweaks

JoshEngebretson 10 years ago
parent
commit
4292a653df
1 changed files with 5 additions and 1 deletions
  1. 5 1
      NativePluginExample/Native/CMakeLists.txt

+ 5 - 1
NativePluginExample/Native/CMakeLists.txt

@@ -1,3 +1,5 @@
+cmake_minimum_required (VERSION 2.8)
+
 #set the native sdk folder, could also be an environment variable, stored locally, etc
 set (NATIVESDK "C:/Dev/atomic/AtomicGameEngine/Bin/NativeSDK")
 
@@ -5,7 +7,7 @@ set (PLUGINNAME MyNativePlugin)
 
 set (SOURCEFILES MyNativePlugin.cpp)
 
-if (MSVC)
+if (WIN32)
 
 	# compile with static runtime, so our plugin doesn't depend on having some MSVC runtime installed
 	
@@ -17,6 +19,8 @@ if (MSVC)
 
 endif()
 
+project(${PLUGINNAME})
+
 include_directories("${NATIVESDK}/Windows")
 
 add_library(${PLUGINNAME} SHARED ${SOURCEFILES})