Browse Source

Only try to make lovec.exe in Windows.

Alex Szpakowski 9 years ago
parent
commit
f281e5871b
1 changed files with 9 additions and 2 deletions
  1. 9 2
      CMakeLists.txt

+ 9 - 2
CMakeLists.txt

@@ -35,9 +35,12 @@ Please see http://bitbucket.org/rude/megasource
 endif()
 endif()
 
 
 set(LOVE_EXE_NAME love)
 set(LOVE_EXE_NAME love)
-set(LOVE_CONSOLE_EXE_NAME lovec)
 set(LOVE_LIB_NAME liblove)
 set(LOVE_LIB_NAME liblove)
 
 
+if(MSVC)
+	set(LOVE_CONSOLE_EXE_NAME lovec)
+endif()
+
 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 if(CMAKE_SIZEOF_VOID_P EQUAL 8)
 	set(LOVE_X64 TRUE)
 	set(LOVE_X64 TRUE)
 	set(LOVE_TARGET_PLATFORM x64)
 	set(LOVE_TARGET_PLATFORM x64)
@@ -1310,7 +1313,11 @@ endif()
 # love (executable)
 # love (executable)
 #
 #
 add_executable(${LOVE_EXE_NAME} WIN32 src/love.cpp ${LOVE_RC})
 add_executable(${LOVE_EXE_NAME} WIN32 src/love.cpp ${LOVE_RC})
-add_executable(${LOVE_CONSOLE_EXE_NAME} src/love.cpp ${LOVE_RC})
+
+if(LOVE_CONSOLE_EXE_NAME)
+	add_executable(${LOVE_CONSOLE_EXE_NAME} src/love.cpp ${LOVE_RC})
+endif()
+
 target_link_libraries(love liblove)
 target_link_libraries(love liblove)
 
 
 # Add post build steps to move the DLLs next to the binary. Otherwise
 # Add post build steps to move the DLLs next to the binary. Otherwise